Skip to content

Commit 10a908e

Browse files
committed
this is a breaking change, strictly speaking
1 parent ad8d618 commit 10a908e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,7 @@ In Svelte 4, `null` and `undefined` were printed as the corresponding string. In
179179
### `bind:files` values can only be `null`, `undefined` or `FileList`
180180

181181
`bind:files` is now a two-way binding. As such, when setting a value, it needs to be either falsy (`null` or `undefined`) or of type `FileList`.
182+
183+
### Bindings now react to form resets
184+
185+
Previously, calling `form.reset()` wasn't notified by bindings, as such values could get out of sync with the DOM. Svelte 5 fixes this by placing a `reset` listener on the document and invoking bindings where necessary.

0 commit comments

Comments
 (0)