Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy loaded menu overflowing the page #2320

Closed
VsevolodGolovanov opened this issue Sep 24, 2021 · 1 comment
Closed

Lazy loaded menu overflowing the page #2320

VsevolodGolovanov opened this issue Sep 24, 2021 · 1 comment
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@VsevolodGolovanov
Copy link

VsevolodGolovanov commented Sep 24, 2021

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
https://codesandbox.io/s/primereact-menu-overflowing-lazy-loading-ywbu7

Current behavior
The menu is positioned only when it first shows, and not when its model is updated.

Expected behavior
The menu should be repositioned when its model is updated.

Minimal reproduction of the problem with instructions
Open linked codesandbox.
Right click the button.
See how the menu overflows the page when it finishes loading.
image

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 ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
@VsevolodGolovanov
Copy link
Author

Can be worked around by hiding and reshowing the menu when updating the model, but that could be hindered by transitions of course.

@mertsincan mertsincan self-assigned this Nov 6, 2021
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Nov 6, 2021
@mertsincan mertsincan added this to the 7.0.0.Final milestone Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants