Multi item input hotkeys fixes (#9453)
- Follow-up on #9442 - Fixed multi item input field on escape
This commit is contained in:
@ -192,6 +192,7 @@ export const MultiItemFieldInput = <T,>({
|
||||
})
|
||||
: undefined
|
||||
}
|
||||
onEscape={handleDropdownClose}
|
||||
onChange={(event) =>
|
||||
handleOnChange(
|
||||
turnIntoEmptyStringIfWhitespacesOnly(event.target.value),
|
||||
|
||||
@ -72,7 +72,7 @@ export const DateInput = ({
|
||||
closeDropdownMonthSelect();
|
||||
closeDropdown();
|
||||
|
||||
onEnter?.(internalValue);
|
||||
onEnter(internalValue);
|
||||
};
|
||||
|
||||
const handleEscape = () => {
|
||||
@ -80,7 +80,7 @@ export const DateInput = ({
|
||||
closeDropdownMonthSelect();
|
||||
closeDropdown();
|
||||
|
||||
onEscape?.(internalValue);
|
||||
onEscape(internalValue);
|
||||
};
|
||||
|
||||
const handleClickOutside = (event: MouseEvent | TouchEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user