Skip to content

Commit

Permalink
fix(button): mouseLeave trigger error (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
berber1016 committed Dec 8, 2021
1 parent bd07a41 commit b0d78b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
color: @gray-3;
background-color: @gray-1;
cursor: not-allowed;
pointer-events: none;
.elevation(none);
}

Expand Down
7 changes: 6 additions & 1 deletion src/list/inner/baseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ const InnerBaseItem = WithRef<HTMLLIElement, BaseItemProps & Omit<DOMAttributes<
<>{content}</>
);
const renderElement = (
<Tooltip disabled={!mergedDisabled || isEmpty(disabledTooltip)} strategy="fixed" title={disabledTooltip}>
<Tooltip
disabled={!mergedDisabled || isEmpty(disabledTooltip)}
strategy="fixed"
title={disabledTooltip}
getContainer={() => document.body}
>
<li
style={style}
className={classNames(
Expand Down

1 comment on commit b0d78b4

@vercel
Copy link

@vercel vercel bot commented on b0d78b4 Dec 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.