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.
delayShow
delayHide
1 parent 3727065 commit e48db29Copy full SHA for e48db29
src/components/Tooltip/Tooltip.tsx
@@ -635,6 +635,8 @@ const Tooltip = ({
635
closeEvents,
636
globalCloseEvents,
637
shouldOpenOnClick,
638
+ delayShow,
639
+ delayHide,
640
])
641
642
useEffect(() => {
@@ -806,6 +808,13 @@ const Tooltip = ({
806
808
}
807
809
}, [id, anchorSelect, imperativeOptions?.anchorSelect])
810
811
+ useEffect(() => {
812
+ if (tooltipShowDelayTimerRef.current) {
813
+ clearTimeout(tooltipShowDelayTimerRef.current)
814
+ handleShowTooltipDelayed(delayShow)
815
+ }
816
+ }, [delayShow])
817
+
818
const actualContent = imperativeOptions?.content ?? content
819
const canShow = show && Object.keys(inlineStyles).length > 0
820
0 commit comments