Fix leak in map menu

This commit is contained in:
Mitchell McCaffrey 2021-08-12 10:57:53 +10:00
parent 7e7179b7e5
commit a71173b778

View File

@ -78,6 +78,7 @@ function MapMenu({
return () => {
if (modalContentNode) {
document.body.removeEventListener("pointerup", handleInteraction);
document.body.removeEventListener("wheel", handleInteraction);
}
};
}, [modalContentNode, excludeNode, onRequestClose]);