-
Notifications
You must be signed in to change notification settings - Fork 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
Calendar position error when appendTo: 'self'
is set
#5058
Comments
@Traveller23 interested in submitting a PR? |
Here is a StackBlitz showing the issue: https://stackblitz.com/edit/react-bzipqg?file=src%2Findex.js |
Actually you are right if I put |
@melloware I tried adding |
Yep something else is definitely going on here. |
I would like to retest this when 10.1.0 is released |
Describe the bug
When
appendTo: 'self'
is set for the PrimeReactProvider, the position of the datepicker that appears after clicking on the Calendar is drastically shifted:This is probably because
position: absolute
was used instead ofposition: fixed
, see the screenshot above.The style of the calendar's container:
width: 20rem; margin: 1rem auto;
, very simple.Reproducer
https://github.com/Traveller23/primereact-nextjs-13
PrimeReact version
10.0.2
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: