chainlist / svelte-forms

Svelte forms validation made easy
MIT License
401 stars 36 forks source link

[BUG] Combined function marks dirty attribute as true #85

Open Kyovint opened 2 years ago

Kyovint commented 2 years ago

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 attribute since the form is a generic component for my app.

Thanks for read me and i hope the solution could be created soon :)

image

DanilKarasev commented 2 years ago

just use some mask with it. On typing it will fill it with whatever you passed to it https://github.com/PaulMaly/svelte-imask