diff --git a/packages/web-react/src/components/Tooltip/Tooltip.tsx b/packages/web-react/src/components/Tooltip/Tooltip.tsx index 5bc550c8c1..7c0c8db9ec 100644 --- a/packages/web-react/src/components/Tooltip/Tooltip.tsx +++ b/packages/web-react/src/components/Tooltip/Tooltip.tsx @@ -15,8 +15,8 @@ const Tooltip = (props: SpiritTooltipProps) => { flipFallbackPlacements = ['bottom', 'top'], id, isDismissible = false, - isOpen = false, isFocusableOnHover = false, + isOpen = false, onToggle, placement: tooltipPlacement, trigger = ['click', 'hover'], @@ -56,10 +56,10 @@ const Tooltip = (props: SpiritTooltipProps) => { flipFallbackAxisSideDirection, flipFallbackPlacements, flipProp, + isFocusableOnHover, isOpen, offset: tooltipOffset, onToggle, - isFocusableOnHover, shiftProp, sizeProp, tooltipArrowWidth, diff --git a/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx b/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx index ccf5614cc4..41d3ecc556 100644 --- a/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx +++ b/packages/web-react/src/components/Tooltip/demo/TooltipAdvancedFloating.tsx @@ -7,7 +7,7 @@ import { Select } from '../../Select'; import { Tooltip, TooltipPopover, TooltipTrigger } from '..'; const TooltipAdvancedFloating = () => { - const [isOpen, setIsOpen] = useState(false); + const [isOpen, setIsOpen] = useState(true); const [flip, setFlip] = useState(true); const [flipCrossAxis, setFlipCrossAxis] = useState(true); const [shift, setShift] = useState(true);