Skip to content

Commit

Permalink
fix(navigator) Flip some logic to the positive case.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanparsons committed Oct 8, 2024
1 parent 070ccc9 commit 98f637f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,8 @@ export const NavigatorItem: React.FunctionComponent<

const onMouseDown = React.useCallback(
(e: React.MouseEvent) => {
// Avoid doing any of this for a right click.
if (e.button !== 2) {
// Only do this for a left mouse down.
if (e.button === 0) {
if (isRenderPropNavigatorEntry(navigatorEntry)) {
e.stopPropagation()
}
Expand Down

0 comments on commit 98f637f

Please sign in to comment.