felte icon indicating copy to clipboard operation
felte copied to clipboard

isValid store not working

Open CryptAlchemy opened this issue 3 years ago • 3 comments
trafficstars

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

  • OS: Windows 10 Pro (Latest)
  • Browser: Microsoft Edge (Latest)
  • Version: Latest from NPM

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 avatar Jun 05 '22 03:06 CryptAlchemy

Would really appreciate your assistance! Thanks in advance! 😊

CryptAlchemy avatar Jun 06 '22 05:06 CryptAlchemy

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. 😅

pablo-abc avatar Jun 09 '22 00:06 pablo-abc

Got it, thank you for your response!

CryptAlchemy avatar Jun 09 '22 16:06 CryptAlchemy