1
0
Fork 0
mirror of synced 2024-09-15 08:47:37 +12:00

Revert clickoutside

This commit is contained in:
Andrew Kingston 2024-04-02 11:02:10 +01:00
parent d71766b9a4
commit 24f6761766

View file

@ -25,7 +25,7 @@ const handleClick = event => {
return return
} }
// Ignore clicks for modals, unless the handler is registered from one // Ignore clicks for modals, unless the handler is registered from a modal
const sourceInModal = handler.anchor.closest(".spectrum-Underlay") != null const sourceInModal = handler.anchor.closest(".spectrum-Underlay") != null
const clickInModal = event.target.closest(".spectrum-Underlay") != null const clickInModal = event.target.closest(".spectrum-Underlay") != null
if (clickInModal && !sourceInModal) { if (clickInModal && !sourceInModal) {