From 1b4cb303c706452dfc53eb0b903e093d4fdba72b Mon Sep 17 00:00:00 2001 From: Gautier Ben Aim Date: Tue, 24 Dec 2024 00:24:42 +0100 Subject: [PATCH 1/2] fix(14815): warn when an invalid ` element should be an array, but it received a non-array value. The selection will be kept as is. +``` + +When using `` element should be an array, but it received a non-array value. The selection will be kept as is. + +When using `` element should be an array, but it received a non-array value. The selection will be kept as is. + */ +export function select_multiple_invalid_value() { + if (DEV) { + console.warn(`%c[svelte] select_multiple_invalid_value\n%cThe \`value\` property of a \`` element should be an array, but it received a non-array value. The selection will be kept as is.' + ] +}); diff --git a/packages/svelte/tests/runtime-runes/samples/select-multiple-invalid-value/main.svelte b/packages/svelte/tests/runtime-runes/samples/select-multiple-invalid-value/main.svelte new file mode 100644 index 000000000000..f3dfedf0e95a --- /dev/null +++ b/packages/svelte/tests/runtime-runes/samples/select-multiple-invalid-value/main.svelte @@ -0,0 +1,9 @@ + + + From 7e780825cfb0a7e6f4dfe209f14f806be0adc75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gautier=20Ben=20A=C3=AFm?= <48261497+GauBen@users.noreply.github.com> Date: Tue, 24 Dec 2024 00:26:56 +0100 Subject: [PATCH 2/2] Create nervous-stingrays-travel.md --- .changeset/nervous-stingrays-travel.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/nervous-stingrays-travel.md diff --git a/.changeset/nervous-stingrays-travel.md b/.changeset/nervous-stingrays-travel.md new file mode 100644 index 000000000000..9ccc3e6c650a --- /dev/null +++ b/.changeset/nervous-stingrays-travel.md @@ -0,0 +1,5 @@ +--- +"svelte": patch +--- + +Warn when an invalid `