From f624d6e292e6cf960200ba9ae42e3d5fdf7d7003 Mon Sep 17 00:00:00 2001 From: Daniel Imfeld Date: Thu, 21 May 2020 10:37:29 -1000 Subject: [PATCH] docs: `value` cannot be set via spread for indirectly bound values (#4832) --- site/content/docs/02-template-syntax.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index 29a2cf75a4..153eb1b4cc 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -121,6 +121,9 @@ An element or component can have multiple spread attributes, interspersed with r ``` + +> 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