Open unional opened 1 month ago
btw this is how it looks like when I add isOpen
to everyone in there:
After "kicking" them back in place:
Also, the position of the tooltip does not update if I use isOpen
and resize the window.
Looks like it's working to me https://github.com/adobe/react-spectrum/blob/6e57855257f54738418f98c37efae798bf9fb4ad/packages/react-aria-components/stories/Tooltip.stories.tsx#L116
Which can be seen here https://reactspectrum.blob.core.windows.net/reactspectrum/6e57855257f54738418f98c37efae798bf9fb4ad/storybook/index.html?path=/story/react-aria-components--tooltip-arrow-boundary-offset-example&providerSwitcher-express=false on the latest build from main
Resizing window seems to work fine as well.
Can you provide a reproduction in a codesandbox/stackblitz/equivalent?
Hi, I updated to 1.2.1 and still observe the same issue. Will try to create a repro.
I can see the difference.
In your example, you are setting isOpen
on the TooltipTrigger
.
In my example, I'm setting isOpen
on the Tooltip
.
It is working on TooltipTrigger
, but not on Tooltip
That looks more like a bug that TooltipProps
is extending from OverlayTriggerProps
. You should be controlling it from TooltipTrigger
Provide a general summary of the issue here
When using the
isOpen
props directly, theTooltip
does not position correctly.I try to use this
isOpen
property to make multiple tooltip to show for taking a snapshot in storybook.In the example below, I add
isOpen
to bothtop start
andtop end
.๐ค Expected Behavior?
(it renders correctly after I hover over them)
๐ฏ Current Behavior
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
tbd
Version
react-aria-components 1.1.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
macOS
๐งข Your Company/Team
Palo Alto Networks
๐ท Tracking Issue
No response