mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(checkbox): prevent potential effect loop by removing checked
dependency on itself.
This commit is contained in:
parent
b4dcbf88d6
commit
50cf2ffd6d
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
$: useGroup = Array.isArray(group);
|
$: useGroup = Array.isArray(group);
|
||||||
$: checked = useGroup ? group.includes(value) : checked;
|
$: if (useGroup) checked = group.includes(value);
|
||||||
$: dispatch("check", checked);
|
$: dispatch("check", checked);
|
||||||
|
|
||||||
let refLabel = null;
|
let refLabel = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue