nextui
nextui copied to clipboard
[BUG] - listbox (select and autocomplete) not scrolling within modal / popup
NextUI Version
2.2.9
Describe the bug
When I add an autocomplete component to a modal, open it and scroll within the modal, the list stays in place. However, it moves when you scroll the whole page. It seems to me that the listbox / popup is bound to the body and not to the modal. Maybe you know a workaround or a concrete solution.
Your Example Website or App
https://codesandbox.io/p/devbox/frosty-cori-cd2l6x?utm_medium=sandpack&file=%2FApp.tsx%3A12%2C9
Steps to Reproduce the Bug or Issue
- Open modal
- Open autocomplete or select
- Scroll within the modal
Expected behavior
I expected the list to move with the scrolling inside the modal.
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Chrome
Was there ever a solution for this? Seems to happen also if autocomplete component isn't in a modal.
I don't know...