How to make Popover work inside a scrollable div? #5132
Replies: 2 comments 5 replies
-
This is actually a bug, the combobox should actually close its popover when the page is scrolled due to issues in updating the popover's placement in cases like the one you've shown above. |
Beta Was this translation helpful? Give feedback.
5 replies
-
Bug report issue created. Closing the discussion as resolved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I have a small question regarding React Spectrum's Popover.
While Popover's position is updated when the body is scrolled, the position doesn't seem to be updated when it is put in a scrollable
div
. The video below demonstrate what I meant. I'm usingComboBox
element here, which uses Popover under the hood. Here's the CodeSandBox link.If anyone can help me resolve this issue, I'd be deeply appreciated. Thank you.
2023-09-26.17.12.50.mov
Beta Was this translation helpful? Give feedback.
All reactions