Replies: 2 comments 3 replies
-
@logaretm Any change you have some input for me? I experience the same with form elements that are renderen within a dynamic component ( When the dynamic component is renderend, it instantly validates the fields and marks them as invalid (because there are no values yet), but the user hasn't had the change to enter them because the fields just renderen :-) Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
resetting the form on mount didn't quite work for me. But as suggested by the original issue, via using |
Beta Was this translation helpful? Give feedback.
-
Hi There,
Thanks for the great lib!!
In our webapp we have a modal component, which works with a teleport and so it only is present in the DOM when it is actually "open".
What we see happening is that a form which is present in the Modal is already validated when the modal becomes first visible (a.k.a. present in the DOM). If I let the modal open instant on loading the page, the form is not validated.
Setting the property
validateOnMount
to false through useForm or useField also doesn't have any effect.The Modal component is code from @headlessui
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions