Skip to content

Commit

Permalink
Merge pull request #2414 from Biki-das/bug-dropdown-p5js
Browse files Browse the repository at this point in the history
Fix:- Drop down menu cannot be right-clicked
  • Loading branch information
lindapaiste authored Sep 13, 2023
2 parents c55cf5f + b92c6f9 commit da9900c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/components/Nav/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ function NavBar({ children, className }) {
onFocus: clearHideTimeout
}),
createMenuItemHandlers: (dropdown) => ({
onMouseUp: () => {
onMouseUp: (e) => {
if (e.button === 2) {
return;
}
setDropdownOpen('none');
},
onBlur: handleBlur,
Expand Down

0 comments on commit da9900c

Please sign in to comment.