Skip to content

Dynamic added inputs not triggers form revalidation #550

@felixmosh

Description

@felixmosh

Due to my refactor of improve initial render (#490 (comment)) there is a bug which not revalidate the form (if the input is not part of the form render path).

I've created an example which demonstrate it https://codesandbox.io/s/formsy-semantic-ui-formselect-options-issue-forked-wq32d?file=/src/Inputs.js

This happens because I've removed the validate from the form's attachToForm method, because the test case was mistakenly tried to submit the form (which triggered re-validation).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions