svelte-forms
svelte-forms copied to clipboard
Svelte forms validation made easy
**Describe the bug** When using matchField, if you enter a value into the field with the validator it will be marked as invalid, and then when you match the value...
**Describe the bug** The min validator can not be used for a text field where you want n characters and they input a number > n. **To Reproduce** Steps to...
Hi! I'm using combined function to integrate the indicative number and phone number and $myForm.dirty is true just after DOM renders my page. I need to do validations with dirty...
docs say that the name for email validator is 'email' but according to source code, it should be 'not_an_email'
Currently, a field is marked as dirty only when its value has changed; but I want it to be marked dirty when its been focused.
When the <input> fields are not wrapped in <form> browser warns about missing form tag like `[DOM] Password field is not contained in a form` when <form> tag is used,...
import { field } from 'svete-forms'; >> import { field } from 'svelte-forms';
If checkOnInit option of `field()` function is set to true, the initial validation immediately sets `dirty` flag to true. The field is then marked as dirty without any user input...
I need to set field value programatically, but sometimes the value is null or undefined. ``` // example const name = field('name', ''); name.set(null); ``` If I call set method...
Is the V2 only targeted for SvelteKit? I hope its not an overkill for svelte only SPA.