Use a default for ignoreHover when not supplied (#8617)
It is considered optional by the component props, so let's treat it as optional.
This commit is contained in:
@@ -43,7 +43,7 @@ const TooltipTarget: React.FC<IProps> = ({
|
||||
...rest
|
||||
}) => {
|
||||
const [isFocused, focusProps] = useFocus();
|
||||
const [isHovering, hoverProps] = useHover(ignoreHover);
|
||||
const [isHovering, hoverProps] = useHover(ignoreHover || (() => false));
|
||||
|
||||
// No need to fill up the DOM with hidden tooltip elements. Only add the
|
||||
// tooltip when we're hovering over the item (performance)
|
||||
|
||||
Reference in New Issue
Block a user