feat(tooltip): append visible prop to control visible state manually

This commit is contained in:
unix
2020-04-08 07:52:10 +08:00
parent 85d9a283cd
commit 1758f73ecd
4 changed files with 11 additions and 3 deletions

View File

@@ -73,7 +73,6 @@ const TooltipContent: React.FC<React.PropsWithChildren<Props>> = React.memo(({
const preventHandler = (event: React.MouseEvent<HTMLDivElement>) => {
event.stopPropagation()
event.preventDefault()
event.nativeEvent.stopImmediatePropagation()
}