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
If you have bind:value={$form.someValue} on your form field, then the form will still get updated when the field changes.
Therefore, it looks like handleChange is not necessary.
However, handleChange both changes the value of the form field and it runs validation on the field instantly. It requires a name or id field on the form field to work.
When you use bind:valueas well ashandleChange, I guess the value is technically being updated twice -- once by Svelte and once by the forms lib. As such, you could argue that bind:value={$form.someValue} should be changed to value={$form.someValue in the examples.
Hi,
I'm curious what is exactly handleChange in example page
When we remove on:change={handleChange} still getting changes on submit function.
The text was updated successfully, but these errors were encountered: