mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 11:43:34 +03:00
fix : 7223 Clicking Outside Fields domain link email phone Close Them (#7804)
fixes #7223 https://github.com/user-attachments/assets/1150e96f-4fb5-40ba-ac17-89d8b2ab16e7
This commit is contained in:
parent
f3a38679ae
commit
3be30651b7
@ -64,9 +64,14 @@ export const MultiItemFieldInput = <T,>({
|
||||
onCancel?.();
|
||||
};
|
||||
|
||||
const handleDropdownCloseOutside = (event: MouseEvent | TouchEvent) => {
|
||||
onCancel?.();
|
||||
event.stopImmediatePropagation();
|
||||
};
|
||||
|
||||
useListenClickOutside({
|
||||
refs: [containerRef],
|
||||
callback: handleDropdownClose,
|
||||
callback: handleDropdownCloseOutside,
|
||||
});
|
||||
|
||||
useScopedHotkeys(Key.Escape, handleDropdownClose, hotkeyScope);
|
||||
|
Loading…
Reference in New Issue
Block a user