Skip to content

Commit

Permalink
Update MultiSelect.js
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Mar 6, 2024
1 parent 5c47367 commit 50e23db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const MultiSelect = React.memo(
if (selected) value = props.value.filter((val) => !ObjectUtils.equals(val, getOptionValue(option), equalityKey));
else value = [...(props.value || []), getOptionValue(option)];

updateModel(event, value, value);
updateModel(event, value, option);
index !== -1 && setFocusedOptionIndex(index);
};

Expand Down

0 comments on commit 50e23db

Please sign in to comment.