inveniosoftware / react-invenio-deposit

React application for Invenio deposit forms.
https://react-invenio-deposit.readthedocs.io
MIT License
3 stars 46 forks source link

ArrayField: error message only displayed for the first element #447

Closed jrcastro2 closed 2 years ago

jrcastro2 commented 2 years ago

Package version (if known): v0.18.0

Describe the bug

When adding different elements to an ArrayField cmp such as "Alternate identifiers" or "Related works", if there are more than one element with errors only the first one is shown.

Steps to Reproduce

  1. Go to 'New upload'.
  2. Fill in basic information.
  3. Add 2 or more "Alternate identifiers" or "Related works" elements.
  4. Click "Save draft".
  5. See the errors in the banner.
  6. Scroll down and see only the first element highlighted with the error message.

Expected behavior

All fields with error should be highlighted.

Screenshots (if applicable)

image

NRodriguezcuellar commented 2 years ago

cannot be reproduced anymore