react icon indicating copy to clipboard operation
react copied to clipboard

[BUG] Wrong validation

Open vaspaul opened this issue 5 years ago • 1 comments

Environment

  • React-formio version: "^4.2.4"
  • Formio.js version: "4.11.0"
  • Frontend framework: React "^16.8.6"
  • Browser: many browsers.
  • Browser version: many browser versions.

Situations in which the bug appears:

Situation 1:

  • There is a display simple condition in the parent "Panel"/"Tab" component. The display simple condition is set in the "Conditional" tab when editing the component.
  • Inside this parent component, there is an "Edit Grid" component with the "Open First Row when Empty" option activated.
  • Inside this "Edit Grid" there is a required text field component.

Situation 2:

  • There is a display simple condition in the "Edit Grid" component. The display simple condition is set in the "Conditional" tab when editing the component.
  • In the same "Edit Grid" component, the "Open First Row when Empty" option is activated.
  • Inside this "Edit Grid" there is a required text field component.

Expected behavior

It is expected that validation will work correctly.

Observed behavior

Error message as if the required field is not filled in. situation1 panal_conditional edit_grid_option

vaspaul avatar Dec 23 '20 09:12 vaspaul

That is because of "Clear Value When Hidden" in EditGrid. You can deselect this option and it works.

sch-publicplan avatar May 27 '21 06:05 sch-publicplan

I am closing the issue as it was created too long ago and there is no new comments here. If the issue is not resolved, please reopen it. Thanks!

TanyaGashtold avatar Aug 31 '23 13:08 TanyaGashtold