diff --git a/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx b/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx index abd6bb2f053e..fe7983082e73 100644 --- a/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx +++ b/packages/twenty-front/src/modules/ui/layout/modal/components/Modal.tsx @@ -1,7 +1,10 @@ import { ModalHotkeyScope } from '@/ui/layout/modal/components/types/ModalHotkeyScope'; import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope'; import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys'; -import { useListenClickOutsideV2 } from '@/ui/utilities/pointer-event/hooks/useListenClickOutsideV2'; +import { + ClickOutsideMode, + useListenClickOutsideV2, +} from '@/ui/utilities/pointer-event/hooks/useListenClickOutsideV2'; import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile'; import styled from '@emotion/styled'; import { motion } from 'framer-motion'; @@ -205,6 +208,7 @@ export const Modal = ({ onClose(); } }, + mode: ClickOutsideMode.comparePixels, }); const stopEventPropagation = (e: React.MouseEvent) => {