fix(segmentation scroll): and hydration bugs (#3701)
This commit is contained in:
1 parent
748acaf9c1
commit
1fd98d9220
4 files changed
+25
-21
No files matched your search
@@ -18,10 +18,14 @@ const Notification = ({ id, type, message, actions, onSubmit, onOutsideClick })
|
||||
}
|
||||
};
|
||||
|
||||
// Both a mouse down and up listeners are desired so as to avoid missing events
|
||||
// from elements that have pointer-events:none (e.g. the active viewport).
|
||||
document.addEventListener('mousedown', handleClick);
|
||||
document.addEventListener('mouseup', handleClick);
|
||||
|
||||
return () => {
|
||||
document.removeEventListener('mousedown', handleClick);
|
||||
document.removeEventListener('mouseup', handleClick);
|
||||
};
|
||||
}, [onOutsideClick]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user