mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix click event handling when clicking outside of an open dropdown menu (#31251)
This commit is contained in:
parent
da5b45a573
commit
afdfeb5856
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ class DropdownMenu extends PureComponent {
|
||||||
if (this.node && !this.node.contains(e.target)) {
|
if (this.node && !this.node.contains(e.target)) {
|
||||||
this.props.onClose();
|
this.props.onClose();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue