Skip to content

Commit

Permalink
Fix click event handling when clicking outside of an open dropdown me…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Aug 1, 2024
1 parent da5b45a commit afdfeb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/mastodon/components/dropdown_menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DropdownMenu extends PureComponent {
if (this.node && !this.node.contains(e.target)) {
this.props.onClose();
e.stopPropagation();
e.preventDefault();
}
};

Expand Down

0 comments on commit afdfeb5

Please sign in to comment.