Skip to content

Commit

Permalink
Merge pull request #56 from Yoctol/style/add-tooltip-delay-to-menu
Browse files Browse the repository at this point in the history
style(menu): add tooltip mouse enter delay
  • Loading branch information
jigsawye authored Feb 13, 2019
2 parents 92f88e7 + 8f28096 commit 0380d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NewMenu/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const SubMenu: FunctionComponent<ISubMenuProps> = ({
placement="right"
content={title}
visible={!contentVisible && tooltipVisible}
mouseEnterDelay={800}
onVisibleChange={visible => {
if (!contentVisible) {
setTooltipVisible(visible);
Expand Down

0 comments on commit 0380d61

Please sign in to comment.