ciscoheat / sveltekit-superforms

Making SvelteKit forms a pleasure to use!
https://superforms.rocks
MIT License
2.26k stars 65 forks source link

Updating a value twice hides change event #470

Closed AndreasHald closed 2 months ago

AndreasHald commented 3 months ago

Description If you update a value twice after each other, the value is updated as expected however the changeEvent will be swallowed. glancing at the code I believe it is because the first change updates the value, so when the second compares changes there is none.

However it creates situations where is you accidentally update the value twice, no change event whatsoever is fired.

If applicable, a MRE Reproducible example

ciscoheat commented 2 months ago

Should be fixed now with 2.19.0