1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2025-02-17 06:22:19 +01:00

Fix click event handling when clicking outside of an open dropdown menu ()

This commit is contained in:
Claire 2024-08-01 22:50:36 +02:00
parent 0a345ad5e1
commit a8039dda13

View file

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