diff --git a/snippets/MultiselectCheckbox.md b/snippets/MultiselectCheckbox.md index 776ea1dba..c17f65a96 100644 --- a/snippets/MultiselectCheckbox.md +++ b/snippets/MultiselectCheckbox.md @@ -29,7 +29,7 @@ const MultiCheckbox = ({ options, onChange }) => { data[key].checked = !item.checked; } }); - updateOptions(data); + updateOptions([...data]); onChange(data); }