From d18bfe6ad22307546d49ed952744b7f5aa83bcfa Mon Sep 17 00:00:00 2001 From: Rishi Kumar Chawda Date: Sun, 24 Feb 2019 19:28:55 +0530 Subject: [PATCH] fix(multiselectcheckbox): minor fix --- snippets/MultiselectCheckbox.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }