Submission Form Allows Deletion of All Repeating Item Entries
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
Direzione di ricerca
Il pulsante di eliminazione è collegato a removeItem() in src/app/shared/form/form.component.ts, che il report collega alle versioni 8.4 e 10.1 per confronto. Inizia da lì, quindi riproduci in un campo ripetibile di un modulo di invio: aggiungi una voce, elimina la prima e controlla quella rimasta. È completato quando una voce rimasta da sola non ha il pulsante di eliminazione, l'ultima voce non può essere rimossa e il pulsante per aggiungere altro resta visibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 180
- Fork
- 577
- Merge medio
- 2g 18h
- PR unite (30g)
- 115
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DSpace/dspace-angular
-
Visual issues with qualdrop fieldsForse già presa @DanGastardelli l’ha presa 4 giorni fa. Apertaaffects: 10.x affects: 9.x bug claimed: Acervos Digitais component: submission Difficulty: Low ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
DSpace/dspace-angular#6412 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Facet headings have incorrect clickable area to expand/collapseForse già presa @jesielviana l’ha presa 1 giorno fa. Apertaaccessibility affects: 10.x affects: 8.x affects: 9.x bug ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DSpace/dspace-angular#6364 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Author browse links on item page open in a new tab, unlike other browse linksForse già presa @jesielviana l’ha presa 26 giorni fa. Apertaaffects: main bug component: Item low priority
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DSpace/dspace-angular#6268 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Mathjax single dollar sign delimiter configuration causes unintentional math rendering in abstractsApertabug needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DSpace/dspace-angular#6263 ·
I maintainer di solito rispondono entro 1 giorno
-
UI spacing regression on ds-generic-item-page-field (extra spaces around metadata values) in v10.xApertaaffects: 10.x affects: main bug component: Item ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DSpace/dspace-angular#6254 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DSpace/dspace-angular
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
Invalid-link error for static location apps shows HTML-escaped sample URL (`/`)Forse già presa @cgmuniz l’ha presa oggi. Aperta🐛 bug
Difficoltà 1/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
apps/stage-web bug env/os-linux pending triage scope/audio-output
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno