diff --git a/components/lib/multiselect/MultiSelect.js b/components/lib/multiselect/MultiSelect.js index e2b1250305..6d1ae2f93b 100644 --- a/components/lib/multiselect/MultiSelect.js +++ b/components/lib/multiselect/MultiSelect.js @@ -123,7 +123,7 @@ export const MultiSelect = React.memo( .filter((option) => isValidOption(option)) .map((option) => getOptionValue(option)); - updateModel(event, value); + updateModel(event, value, value); } }; @@ -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); + updateModel(event, value, option); index !== -1 && setFocusedOptionIndex(index); }; @@ -349,7 +349,7 @@ export const MultiSelect = React.memo( if (event.code === 'KeyA' && metaKey) { const value = visibleOptions.filter((option) => isValidOption(option)).map((option) => getOptionValue(option)); - updateModel(event, value); + updateModel(event, value, value); event.preventDefault(); break;