mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(checkbox): prevent infinite effect loop when binding to same object (#2178)
Fixes #2177
This commit is contained in:
parent
b4dcbf88d6
commit
c7ad1ebdd3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue