mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-18 16:43:51 -05:00
Fix click event handling when clicking outside of an open dropdown menu (#31251)
This commit is contained in:
parent
da5b45a573
commit
afdfeb5856
@ -39,6 +39,7 @@ class DropdownMenu extends PureComponent {
|
||||
if (this.node && !this.node.contains(e.target)) {
|
||||
this.props.onClose();
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user