fix(checkbox): prevent infinite effect loop when binding to same object (#2178)

Fixes #2177
This commit is contained in:
brunnerh 2025-08-05 15:45:54 +02:00 committed by GitHub
commit c7ad1ebdd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,7 @@
const dispatch = createEventDispatcher();
$: useGroup = Array.isArray(group);
$: checked = useGroup ? group.includes(value) : checked;
$: if (useGroup) checked = group.includes(value);
$: dispatch("check", checked);
let refLabel = null;