Skip to content

Fix #8357: Calendar closes correctly on scroll#8427

Merged
melloware merged 1 commit intoprimefaces:masterfrom
AbelNoble:calendar-fix
Dec 5, 2025
Merged

Fix #8357: Calendar closes correctly on scroll#8427
melloware merged 1 commit intoprimefaces:masterfrom
AbelNoble:calendar-fix

Conversation

@AbelNoble
Copy link
Copy Markdown
Contributor

This PR fixes the issue where the Calendar popup does not close when the page is scrolled (issue #8357). Previously, scrolling the page would leave the calendar popup open, sometimes causing it to move incorrectly and trigger JS errors.

Changes:
Added logic to close the calendar popup when the user scrolls the page.
Ensured that the scroll listener is properly attached and removed to avoid memory leaks.
Testing / Reproduction:
Run the showcase app (npm run dev).
Open the Calendar component.
Scroll the page — the calendar popup should now close immediately.
Screenshots / Before & After:
Before fix: View
After fix: View

Issue Reference:
Closes #8357

@melloware melloware merged commit ba4adbe into primefaces:master Dec 5, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar: When the calendar is open, and the screen is scrolled, the calendar does not close. JS error

2 participants