mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix: tooltip syntax error & remove restMs
This commit is contained in:
@@ -129,7 +129,7 @@ function TooltipRoot({ delay = 0, closeDelay = 0, trackCursorAxis, children }: T
|
||||
const { status: transitionStatus } = useTransitionStatus(context);
|
||||
|
||||
const hover = useHover(context, {
|
||||
restMs: 300,
|
||||
// restMs: 300, // this broke the time slider tooltip, todo: find solution!
|
||||
delay: {
|
||||
open: delay,
|
||||
close: closeDelay,
|
||||
@@ -166,7 +166,6 @@ function TooltipRoot({ delay = 0, closeDelay = 0, trackCursorAxis, children }: T
|
||||
arrowRef,
|
||||
transitionStatus,
|
||||
trackCursorAxis,
|
||||
};
|
||||
}), [getReferenceProps, getFloatingProps, context, updatePositioning, transitionStatus, trackCursorAxis]);
|
||||
|
||||
return <TooltipContext.Provider value={value}>{children}</TooltipContext.Provider>;
|
||||
|
||||
Reference in New Issue
Block a user