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
|
: undefined
|
||||||
}
|
}
|
||||||
|
onEscape={handleDropdownClose}
|
||||||
onChange={(event) =>
|
onChange={(event) =>
|
||||||
handleOnChange(
|
handleOnChange(
|
||||||
turnIntoEmptyStringIfWhitespacesOnly(event.target.value),
|
turnIntoEmptyStringIfWhitespacesOnly(event.target.value),
|
||||||
|
|||||||
@ -72,7 +72,7 @@ export const DateInput = ({
|
|||||||
closeDropdownMonthSelect();
|
closeDropdownMonthSelect();
|
||||||
closeDropdown();
|
closeDropdown();
|
||||||
|
|
||||||
onEnter?.(internalValue);
|
onEnter(internalValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleEscape = () => {
|
const handleEscape = () => {
|
||||||
@ -80,7 +80,7 @@ export const DateInput = ({
|
|||||||
closeDropdownMonthSelect();
|
closeDropdownMonthSelect();
|
||||||
closeDropdown();
|
closeDropdown();
|
||||||
|
|
||||||
onEscape?.(internalValue);
|
onEscape(internalValue);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleClickOutside = (event: MouseEvent | TouchEvent) => {
|
const handleClickOutside = (event: MouseEvent | TouchEvent) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user