1
0

[Glitch] Fix click event handling when clicking outside of an open dropdown menu

Port afdfeb5856 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire 2024-08-01 22:50:36 +02:00
parent 80d315826f
commit 7946d986a7

View File

@ -39,6 +39,7 @@ class DropdownMenu extends PureComponent {
if (this.node && !this.node.contains(e.target)) {
this.props.onClose();
e.stopPropagation();
e.preventDefault();
}
};