From 23ecd3db29c86c597f9705d43b343a64173c3bac Mon Sep 17 00:00:00 2001 From: yuki0418 Date: Wed, 1 Oct 2025 09:24:17 +0900 Subject: [PATCH] show an extra bind checked error when a radio type --- documentation/docs/03-template-syntax/12-bind.md | 2 +- .../phases/2-analyze/visitors/BindDirective.js | 2 +- .../samples/binding-input-checked/errors.json | 2 +- .../binding-radio-input-checked/errors.json | 14 ++++++++++++++ .../binding-radio-input-checked/input.svelte | 5 +++++ 5 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 packages/svelte/tests/validator/samples/binding-radio-input-checked/errors.json create mode 100644 packages/svelte/tests/validator/samples/binding-radio-input-checked/input.svelte diff --git a/documentation/docs/03-template-syntax/12-bind.md b/documentation/docs/03-template-syntax/12-bind.md index 50e543be66..91bd59665b 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 can be bound with `bind:checked`: +Checkbox inputs can be bound with `bind:checked`: ```svelte