Open uyevan opened 3 months ago
Thanks for the issue! The issue is caused by NavBarMenu using RemoveScroll. https://github.com/nextui-org/nextui/blob/canary/packages/components/navbar/src/navbar-menu.tsx#L34-L40
Removing RemoveScroll
like this will fix the issue:
const MenuWrapper = ({children}: {children: ReactElement}) => {
return <>{children}</>
}
However, doing so will allow the outer content to scroll when menu item are displayed, which is not ideal for the user experience.
The NextUI NavBar code example and the APG Navigation Menubar Example use Links for menu items. It might be worth reconsidering the logic of displaying popups like dialogs from NavBar menu items.
If needed, Dropdown might be more suitable for this purpose.
NextUI Version
2.4.1
Describe the bug
Activating a Modal within the NavbarMenuItem event prevents sliding in any direction on elements within the Modal.Through repeated testing, I have indeed discovered the existence of this issue.
Here is the code I tested:
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
I hope to be able to slide elements within Modal without closing NavbarMenu Item.
Screenshots or Videos
Operating System Version
Windows11
Browser
Chrome