Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5f8aeca

Browse files
authored
Use a default for ignoreHover when not supplied (#8617)
It is considered optional by the component props, so let's treat it as optional.
1 parent 12cee6e commit 5f8aeca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/elements/TooltipTarget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const TooltipTarget: React.FC<IProps> = ({
4343
...rest
4444
}) => {
4545
const [isFocused, focusProps] = useFocus();
46-
const [isHovering, hoverProps] = useHover(ignoreHover);
46+
const [isHovering, hoverProps] = useHover(ignoreHover || (() => false));
4747

4848
// No need to fill up the DOM with hidden tooltip elements. Only add the
4949
// tooltip when we're hovering over the item (performance)

0 commit comments

Comments
 (0)