ContextMenu: Submenu overflowing the page #2318
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-menu-overflowing-qer9w
Current behavior
A long menu overflows the page:
Expected behavior
A menu should prefer to stay in the viewport, abandoning its source. Like PrimeFaces does:
Minimal reproduction of the problem with instructions
Open the linked codesandbox.
Right click the button.
Hover the "Submenu".
See how the next menu level overflows the page.
Please tell us about your environment:
React version:
17.0.2
PrimeReact version:
6.5.1
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
The text was updated successfully, but these errors were encountered: