Closed vocabularies for the tag input type still allow custom values as long as there's a suggestion present

Đang mở
#6,332 0 bình luận 1 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@jensvannerum đang làm issue này rồi.

Từ ngày 6/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

affects: 10.x affects: 8.x affects: 9.x affects: main bug claimed: Atmire component: controlled vocabulary component: submission

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

  1. Set any field up in the back end's submission-forms.xml to use a vocabulary with closed=true and 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>
  1. Start tying a value that appears in the vocabulary, but only partially so that your input is not in the vocabulary
  2. 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

Image Image Image

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

Ngôn ngữ chính
TypeScript
Star
180
Fork
577
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
95

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DSpace/dspace-angular

Tất cả issue của DSpace/dspace-angular

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.