Closed vocabularies for the tag input type still allow custom values as long as there's a suggestion present
维护者通常 1 天内回复
@jensvannerum 已经在做这个了。
开始于 2026年10月6日。
评估
这个 Issue 还没有评估数据。
描述
Describe the bug
Even when a vocabulary is closed, if you use the tag input type for it, your input will always be appeneded to the list as a 'suggestion', allowing you to submit any value (as long as your input causes a suggestion to show).
To Reproduce
- Set any field up in the back end's
submission-forms.xmlto use a vocabulary withclosed=trueand input type tag e.g:
<field>
<dc-schema>dc</dc-schema>
<dc-element>subject</dc-element>
<dc-qualifier></dc-qualifier>
<repeatable>true</repeatable>
<label>Subject Keywords</label>
<input-type>tag</input-type>
<hint>Enter appropriate subject keywords or phrases.</hint>
<required></required>
<vocabulary closed="true">srsc</vocabulary>
</field>
- Start tying a value that appears in the vocabulary, but only partially so that your input is not in the vocabulary
- Verify that your input is shown as suggestion at the bottom of the list, you can click it, it's added as a tag and you can save/submit
In the images below you can see how I add "tes" which is NOT in my vocabulary
Expected behavior
A clear and concise description of what you expected to happen.
I've already got a fix on DSpace 9, so I will claim this issue myself and re-do it against the latest main
- 主要语言
- TypeScript
- 星标
- 180
- 派生
- 577
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 95
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DSpace/dspace-angular 的其他 Issue
-
accessibility affects: 10.x affects: main bug ux
难度 2/5 1-3 小时 新手友好度 72/100
DSpace/dspace-angular#6531 · 1 条评论 ·
维护者通常 1 天内回复
-
accessibility affects: 10.x affects: main bug help wanted
难度 2/5 1-3 小时 新手友好度 66/100
DSpace/dspace-angular#6530 ·
维护者通常 1 天内回复
-
Submission Form Allows Deletion of All Repeating Item Entries可能已有人在做 @Rowan-McKereghan 于 5 天前认领。 未关闭affects: 8.x affects: 9.x bug component: submission
难度 2/5 1-3 小时 新手友好度 72/100
DSpace/dspace-angular#6511 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Visual issues with qualdrop fields可能已有人在做 @DanGastardelli 于 15 天前认领。 未关闭affects: 10.x affects: 9.x bug claimed: Acervos Digitais component: submission Difficulty: Low ux
难度 2/5 1-3 小时 新手友好度 66/100
DSpace/dspace-angular#6412 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Facet headings have incorrect clickable area to expand/collapse可能已有人在做 @jesielviana 于 12 天前认领。 未关闭accessibility affects: 10.x affects: 8.x affects: 9.x bug ux
难度 2/5 1-3 小时 新手友好度 72/100
DSpace/dspace-angular#6364 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 DSpace/dspace-angular 的全部 Issue
相似的 Issue
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
amplitude/Amplitude-TypeScript#2179 · 1 条评论 ·
维护者通常 2 天内回复
-
ci good first issue severity: low
难度 2/5 1-3 小时 新手友好度 68/100
TMHSDigital/GH-Arcade#111 ·
-
AsnIntegerConverter.toASN coerces strings with +value, rounding integers outside safe-integer range未关闭
难度 2/5 1-3 小时 新手友好度 78/100
PeculiarVentures/asn1-schema#189 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100