Fixed callback firing on clickoutside but mousedown inside. (#2434)
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -158,7 +158,7 @@ export const Modal = ({
|
||||
useListenClickOutside({
|
||||
refs: [modalRef],
|
||||
callback: () => onClose?.(),
|
||||
mode: ClickOutsideMode.absolute,
|
||||
mode: ClickOutsideMode.comparePixels,
|
||||
});
|
||||
|
||||
const {
|
||||
|
||||
@ -56,7 +56,7 @@ export const RightDrawer = () => {
|
||||
useListenClickOutside({
|
||||
refs: [rightDrawerRef],
|
||||
callback: () => closeRightDrawer(),
|
||||
mode: ClickOutsideMode.absolute,
|
||||
mode: ClickOutsideMode.comparePixels,
|
||||
});
|
||||
|
||||
const theme = useTheme();
|
||||
|
||||
Reference in New Issue
Block a user