formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Validation error messages of components in modal edit mode are not displayed outside the modal

Open llemire-exp opened this issue 6 months ago • 1 comments

Describe the bug Validation error messages of fields in modal edit mode are not displayed outisde the modal

Version/Branch

@formio/js: 5.1.0

Also reproduceable on the playground

To Reproduce Steps to reproduce the behavior:

  1. Go in the playground
  2. Add a number component
  3. select the "Modal Edit" Option in the Display tab
  4. In the Validation tab, set the minimum value to 5
  5. Save the component
  6. In the rendered form, click on the "Edit Value" and enter the value 3
  7. The error message should appear, click on save
  8. The error message is no longer displayed

Expected behavior The error message should be displayed under the component

Screenshots The error message in the component:

Image The error message is missing after clicking save:

Image

Additional context when checking the form validity, the form appears to be invalid, so it seems that the issue is only in the display of the error message

llemire-exp avatar Jun 20 '25 15:06 llemire-exp

Thank you for reporting this issue. I can reproduce it and have logged a ticket for the backlog. We are always willing to review any contributions from the open-source community to resolve this issue.

For internal reference: FIO-10331

Sidiro23 avatar Jun 25 '25 14:06 Sidiro23