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

Fix ConfirmPopup placement on stopped events #5930

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

multun
Copy link

@multun multun commented Jun 20, 2024

The previous implementation only sets the ConfirmPopup position in bindOutsideClickListener, when a click is registered on the root window that isn't on the popup itself.

This is an issue, as it does not work if the click event that caused the popup to appear does not propagate up to the root window.

Instead, this change always positions the window when it appears. This is already what the Popover component does, which does not exhibits the same bug.

Defect Fixes

Fix #5929

The previous implementation only sets the ConfirmPopup position in
bindOutsideClickListener, when a click is registered on the root
window that isn't on the popup itself.

This is an issue, as it does not work if the click event that caused
the popup to appear does not propagate up to the root window.

Instead, this change always positions the window when it appears.
This is already what the Popover component does, which does not exhibits
the same bug.

Fix primefaces#5929
Copy link

vercel bot commented Jun 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 9:33am
primevue-v3 ⬜️ Ignored (Inspect) Visit Preview Jun 20, 2024 9:33am

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.

ConfirmPopup: misplaced / missing popup on stopped click event
1 participant