Describe the bug
When using appendTo="body", the date picker loses it's alignment when selecting the month/year picker.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/nrtwxxny?file=src%2Fapp%2Fdatepicker-basic-demo.ts
Environment
Windows 11
Angular version
21.2.11
PrimeNG version
v21
Node version
No response
Browser(s)
Chrome, Firefox
Steps to reproduce the behavior
When using appendTo="body", the date picker loses it's alignment when selecting the month/year picker.
Click on the input to open the date picker
Note that the date picker is aligned correctly
Click on the year or month selector
Notice that the alignment changes and is wrong
Please check the reproducer.
Expected behavior
The date picker should maintain its alignment
Describe the bug
When using appendTo="body", the date picker loses it's alignment when selecting the month/year picker.
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/nrtwxxny?file=src%2Fapp%2Fdatepicker-basic-demo.ts
Environment
Windows 11
Angular version
21.2.11
PrimeNG version
v21
Node version
No response
Browser(s)
Chrome, Firefox
Steps to reproduce the behavior
When using appendTo="body", the date picker loses it's alignment when selecting the month/year picker.
Click on the input to open the date picker
Note that the date picker is aligned correctly
Click on the year or month selector
Notice that the alignment changes and is wrong
Please check the reproducer.
Expected behavior
The date picker should maintain its alignment