We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acaa612 commit 2a514bbCopy full SHA for 2a514bb
src/components/Tooltip/Tooltip.tsx
@@ -82,14 +82,8 @@ const Tooltip = ({
82
handleShow(false)
83
}
84
85
- if (show && tooltipShowDelayTimerRef.current) {
+ if (tooltipShowDelayTimerRef.current) {
86
clearTimeout(tooltipShowDelayTimerRef.current)
87
- } else if (!show && tooltipShowDelayTimerRef.current) {
88
- // workaround to prevent tooltip being show forever
89
- // when we remove the mouse before show tooltip with `delayShow`
90
- tooltipHideDelayTimerRef.current = setTimeout(() => {
91
- handleShow(false)
92
- }, delayShow * 2)
93
94
95
0 commit comments