Skip to content

Commit 3ddbc81

Browse files
BIKI DASBIKI DAS
BIKI DAS
authored and
BIKI DAS
committed
Fixed right click bug
1 parent 4eb06ff commit 3ddbc81

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)