mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-06 04:36:21 +02:00
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:
parent
12cee6e29f
commit
5f8aecaf08
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user