Skip to content

Commit b898420

Browse files
fix: use value from the evt.target to fix index creation COMPASS-6981 (#4596)
* fix: use value from the evt.target to fix index creation COMPASS-6981 * refactor: evt.target as any
1 parent 99faf39 commit b898420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-components/src/components/combobox-with-custom-option.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ export const ComboboxWithCustomOption = <
6262
{...props}
6363
multiselect={multiselect}
6464
onFilter={setSearch}
65-
onBlur={() => {
65+
onBlur={(evt) => {
6666
// Set a search value as the combobox value onBlur event to fix missing values on modal submit COMPASS-6511
6767
// We don't do this for multiselect, because in this case, you should explicitly check the value in the list.
6868
if (!multiselect) {
69-
selectValueAndRunOnChange(search);
69+
selectValueAndRunOnChange((evt.target as any).value);
7070
}
7171
}}
7272
onChange={selectValueAndRunOnChange}

0 commit comments

Comments
 (0)