|
|
|
@ -33,7 +33,7 @@ const Tooltip: FC<TooltipProps> = ({
|
|
|
|
noDecoration,
|
|
|
|
noDecoration,
|
|
|
|
offset,
|
|
|
|
offset,
|
|
|
|
asChild = true,
|
|
|
|
asChild = true,
|
|
|
|
needsDelay = false,
|
|
|
|
needsDelay = true,
|
|
|
|
}) => {
|
|
|
|
}) => {
|
|
|
|
const [open, setOpen] = useState(false)
|
|
|
|
const [open, setOpen] = useState(false)
|
|
|
|
const [isHoverPopup, {
|
|
|
|
const [isHoverPopup, {
|
|
|
|
@ -68,7 +68,7 @@ const Tooltip: FC<TooltipProps> = ({
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
if (!isHoverPopupRef.current && !isHoverTriggerRef.current)
|
|
|
|
if (!isHoverPopupRef.current && !isHoverTriggerRef.current)
|
|
|
|
setOpen(false)
|
|
|
|
setOpen(false)
|
|
|
|
}, 500)
|
|
|
|
}, 300)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
setOpen(false)
|
|
|
|
setOpen(false)
|
|
|
|
|