From 9e5fe33b9cd527dec6e70fe10e0e81ab8ca23b25 Mon Sep 17 00:00:00 2001 From: yuki0418 Date: Wed, 1 Oct 2025 07:58:10 +0900 Subject: [PATCH 1/4] fix: update error message to clarify usage with radio inputs --- .changeset/slow-nails-push.md | 5 +++++ documentation/docs/03-template-syntax/12-bind.md | 4 +++- .../src/compiler/phases/2-analyze/visitors/BindDirective.js | 6 +++++- .../validator/samples/binding-input-checked/errors.json | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .changeset/slow-nails-push.md diff --git a/.changeset/slow-nails-push.md b/.changeset/slow-nails-push.md new file mode 100644 index 000000000000..8dedf35593eb --- /dev/null +++ b/.changeset/slow-nails-push.md @@ -0,0 +1,5 @@ +--- +'svelte': patch +--- + +fix: update `bind:checked` error message to clarify usage with radio inputs diff --git a/documentation/docs/03-template-syntax/12-bind.md b/documentation/docs/03-template-syntax/12-bind.md index de57815687dc..50e543be666b 100644 --- a/documentation/docs/03-template-syntax/12-bind.md +++ b/documentation/docs/03-template-syntax/12-bind.md @@ -95,7 +95,7 @@ Since 5.6.0, if an `` has a `defaultValue` and is part of a form, it will ## `` -Checkbox and radio inputs can be bound with `bind:checked`: +Checkbox can be bound with `bind:checked`: ```svelte