You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the first example in the documentation of a simple form, the input field is considered to be valid on first load even though no value exists in the field.
I have slightly adapted the first example to demonstrate the problem:
Fixeschainlist#95
It's expected that a form would behave as if it has checkOnInit on: empty form is invalid - false, once you add some input, it's true.
One can of course read the documentation in detail to figure out what's wrong, but it might be useful for the first example to be self-sufficient.
The change was proposed by grischaerbe in the issue, and it is already explained in documentation. Thoughts on adding this to documentation?
In the first example in the documentation of a simple form, the input field is considered to be valid on first load even though no value exists in the field.
I have slightly adapted the first example to demonstrate the problem:
https://svelte.dev/repl/7aca3afc2c374c7e9c143e773fbdc0ef?version=3.53.1
I would expect the form to show "Form valid: false". Instead it says "Form valid: true"
I am using version 2.3.1 of svelte-forms.
The text was updated successfully, but these errors were encountered: