docs: `value` cannot be set via spread for indirectly bound values (#4832)

pull/4903/head
Daniel Imfeld 4 years ago committed by GitHub
parent 97db5cc7f7
commit f624d6e292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -121,6 +121,9 @@ An element or component can have multiple spread attributes, interspersed with r
<input {...$$restProps}>
```
> The `value` attribute of an `input` element or its children `option` elements must not be set with spread attributes when using `bind:group` or `bind:checked`. Svelte needs to be able to see the element's `value` directly in the markup in these cases so that it can link it to the bound variable.
---
### Text expressions

Loading…
Cancel
Save