Skip to content

Commit da9900c

Browse files
authored
Merge pull request #2414 from Biki-das/bug-dropdown-p5js
Fix:- Drop down menu cannot be right-clicked
2 parents c55cf5f + b92c6f9 commit da9900c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/components/Nav/NavBar.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ function NavBar({ children, className }) {
7171
onFocus: clearHideTimeout
7272
}),
7373
createMenuItemHandlers: (dropdown) => ({
74-
onMouseUp: () => {
74+
onMouseUp: (e) => {
75+
if (e.button === 2) {
76+
return;
77+
}
7578
setDropdownOpen('none');
7679
},
7780
onBlur: handleBlur,

0 commit comments

Comments
 (0)