Submission Form Allows Deletion of All Repeating Item Entries
Maintainer thường phản hồi trong vòng 1 ngày
@Rowan-McKereghan đang làm issue này rồi.
Từ ngày 6/11/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- angular, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Nút xóa được gắn với removeItem() trong src/app/shared/form/form.component.ts, mà báo cáo liên kết ở phiên bản 8.4 và 10.1 để so sánh. Hãy bắt đầu từ đó, sau đó tái hiện trong một trường lặp lại của biểu mẫu gửi: thêm một mục, xóa mục đầu tiên và kiểm tra mục còn lại. Hoàn thành khi mục còn lại duy nhất không có nút xóa, mục cuối cùng không thể bị gỡ bỏ và nút thêm mục vẫn hiển thị.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When clicking the "Add More" button in a submission form, and then deleting the first item in the array of two, the trash / deletion button remains next to the single item, allowing deletion of all items in the array, and removing the add more button, forcing the user to reload the page if they want to add values to that submission form input. Running DSpace 8.4, appears on both Chrome and Safari.
After investigation, this bug does not appear in the newest stable release of DSpace (10.1), and I believe this is because the removeItem() function that the delete button calls was changed in version 10.x – see the difference between version 8.4 and version 10.1 here, where in the latter, the function checks the form array length and only removes the input if it is greater than 1.
I haven't tested it, but I therefore believe this issue affects all DSpace versions 8.x and 9.x, since this code only exists in 10.x.
To Reproduce
- Begin the submission process
- Type something into a repeatable form element
- Click 'Add More'
- Delete the first element where a value exists
- The empty element should have a delete button that allows removal of all inputs
Expected behavior
Single elements in repeatable input arrays should not have the delete button appear.
Related work
TBD
- Ngôn ngữ chính
- TypeScript
- Star
- 180
- Fork
- 577
- Merge trung bình
- 2 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 112
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DSpace/dspace-angular
-
Visual issues with qualdrop fieldsCó thể đã có người làm @DanGastardelli đã nhận 8 ngày trước. Đang mởaffects: 10.x affects: 9.x bug claimed: Acervos Digitais component: submission Difficulty: Low ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
DSpace/dspace-angular#6412 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Facet headings have incorrect clickable area to expand/collapseCó thể đã có người làm @jesielviana đã nhận 5 ngày trước. Đang mởaccessibility affects: 10.x affects: 8.x affects: 9.x bug ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DSpace/dspace-angular#6364 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Author browse links on item page open in a new tab, unlike other browse linksCó thể đã có người làm @jesielviana đã nhận 29 ngày trước. Đang mởaffects: main bug component: Item low priority
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
DSpace/dspace-angular#6268 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mathjax single dollar sign delimiter configuration causes unintentional math rendering in abstractsĐang mởbug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DSpace/dspace-angular#6263 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
UI spacing regression on ds-generic-item-page-field (extra spaces around metadata values) in v10.xCó thể đã có người làm @bram-maegerman đã nhận 2 ngày trước. Đang mởaffects: 10.x affects: main bug component: Item ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
DSpace/dspace-angular#6254 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DSpace/dspace-angular
Issue tương tự
-
twilio.webhook() rejects valid requests when the query string has an encoded `?` and a `+` spaceĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
twilio/twilio-node#1232 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Tiling managers are not destroyed in disable(), so window-created handlers keep running (Gio.Settings constructed without schema)Có thể đã có người làm @gnacho đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
domferr/tilingshell#641 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
🐛 bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LibreChat-AI/LibreChat#17887 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`isCI` is `true` inside a running Google Cloud Run service (also Railway, Render, Deno Deploy)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100