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.
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
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