Fix linting

This commit is contained in:
yangdx
2025-03-12 18:55:15 +08:00
parent 5c1cf6a8ff
commit 330f608fa9
7 changed files with 19 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ const TooltipContent = React.forwardRef<
}
>(({ className, side = 'left', align = 'start', children, ...props }, ref) => {
const contentRef = React.useRef<HTMLDivElement>(null);
React.useEffect(() => {
if (contentRef.current) {
contentRef.current.scrollTop = 0;