Skip to content

Commit 35b500c

Browse files
committed
docs: note bind:files breaking change
closes #10032
1 parent a679761 commit 35b500c

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
@@ -111,3 +111,7 @@ This is not recommended, and is no longer possible in Svelte 5, where properties
111111
### `null` and `undefined` become the empty string
112112

113113
In Svelte 4, `null` and `undefined` were printed as the corresponding string. In 99 out of 100 cases you want this to become the empty string instead, which is also what most other frameworks out there do. Therefore, in Svelte 5, `null` and `undefined` become the empty string.
114+
115+
### `bind:files` values can only be `null`, `undefined` or `FileList`
116+
117+
`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`.

0 commit comments

Comments
 (0)