0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 00:22:05 +01:00
Commit Graph

1 Commits

Author SHA1 Message Date
Simon H
3eef1cb8cf
feat: take form resets into account for two way bindings (#10617)
* feat: take form resets into account for two way bindings

When resetting a form, the value of the inputs within it get out of sync with the bound value of those inputs. This PR introduces a reset listener on the parent form to reset the value in that case
closes #2659

* slightly different approach

* tweaks, test

* this is a breaking change, strictly speaking

* bind:files

* use capture phase

* tweak wording

* use promise, explain
2024-03-22 17:40:04 +00:00