-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Set appendTo as body by default #1875
Comments
@mertsincan hello there. So overlay has changed pretty drastically. How can one achieve the same behaviour as before? Right now I see you always, but always have to provide an appendTo valid DOM element to the OverlayPanel, which is gonna break anyone's popover everywhere. How can the previous behaviour can be achieved after this update? The solution for everyone else who want to behave as before would be to make wrapper for this component and use it like this:
|
Thanks @vrinceanuv, I added "self" value to appendTo property. You can use it. Details; Note: In all Prime* libraries, almost all users wanted the appendTo={document.body} by default. That's why we set it as default in all of them. Best Regards, |
Hi @vrinceanuv, Also, I added appendTo option to PrimeReact api. You can change it for all overlay components. Details; #1964
Best Regards, |
Thank you a lot |
Most of the time users need to set it as body so let's make it default.
The text was updated successfully, but these errors were encountered: