inveniosoftware / react-invenio-deposit

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

custom fields: error is not displayed after saving a few times #582

Open jrcastro2 opened 1 year ago

jrcastro2 commented 1 year ago

Package version (if known):

Describe the bug

When introducing a wrong value in one of the custom fields, after the first save, the error is displayed but after saving it again it the error will disappear, although the value is still incorrect in the form

Steps to Reproduce

  1. Go to 'New upload'
  2. Fill in required fields
  3. Fill in one of the custom fields with a invalid value
  4. Save
  5. Modify any other field except for the custom field with the wrong value
  6. Save
  7. Save again
  8. Error disappeared

Expected behavior

Error should be displayed as long as the value is wrong in the form.

ppanero commented 1 year ago

There are two possible solutions: