pablo-abc / felte

An extensible form library for Svelte, Solid and React
https://felte.dev
MIT License
1.01k stars 44 forks source link

isValid store not working #145

Open CryptAlchemy opened 2 years ago

CryptAlchemy commented 2 years ago

Describe the bug

The isValid attribute is not updating, even though the form is not valid.

Which package/s are you using?

felte (Svelte)

Environment

To reproduce

To reproduce, click the Svelte repl I attached and enter a number in the field that is less than 5 or greater than 100 (makes it invalid yet the store remains as true).

Small reproduction example

https://svelte.dev/repl/f7a66becf984441fac082684769475f1?version=3.48.0

Screenshots

No response

Additional context

No response

CryptAlchemy commented 2 years ago

Would really appreciate your assistance! Thanks in advance! 😊

pablo-abc commented 2 years ago

Hey, sorry for the delay! This is to be expected right now, unfortunately. isValid is tied to the validate function in the configuration (or if you're using a validator). There's a PR open for integrating Felte with the browser's built-in validation but it's currently on draft and I haven't had time to get back to it. 😅

CryptAlchemy commented 2 years ago

Got it, thank you for your response!