mirror of
https://github.com/lingble/twenty.git
synced 2025-10-30 20:27:55 +00: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:
committed by
GitHub
parent
f3a38679ae
commit
3be30651b7
@@ -64,9 +64,14 @@ export const MultiItemFieldInput = <T,>({
|
|||||||
onCancel?.();
|
onCancel?.();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const handleDropdownCloseOutside = (event: MouseEvent | TouchEvent) => {
|
||||||
|
onCancel?.();
|
||||||
|
event.stopImmediatePropagation();
|
||||||
|
};
|
||||||
|
|
||||||
useListenClickOutside({
|
useListenClickOutside({
|
||||||
refs: [containerRef],
|
refs: [containerRef],
|
||||||
callback: handleDropdownClose,
|
callback: handleDropdownCloseOutside,
|
||||||
});
|
});
|
||||||
|
|
||||||
useScopedHotkeys(Key.Escape, handleDropdownClose, hotkeyScope);
|
useScopedHotkeys(Key.Escape, handleDropdownClose, hotkeyScope);
|
||||||
|
|||||||
Reference in New Issue
Block a user