Skip to content

Commit

Permalink
fix: stop propagation when click menu item (#3147)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector authored Jan 17, 2023
1 parent 323e015 commit 90dad14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/x6-react-components/src/menubar/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class MenubarItemInner extends React.PureComponent<
}

onClick = (e: React.MouseEvent) => {
e.stopPropagation()
this.props.context.activeMenubar()
this.removeDeactive(e.currentTarget.parentElement)
this.active()
Expand Down

0 comments on commit 90dad14

Please sign in to comment.