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

Fixes #15022: dialog not closing #15345

Merged

Conversation

dobanisola-scottlogic
Copy link
Contributor

@dobanisola-scottlogic dobanisola-scottlogic commented Apr 23, 2024

Fixes #15022
The bug happens because there's a onMouseDown event on the dialog header that does nothing if the element has class 'p-dialog-header-icon' else it does the drag logic. However when a user clicks on the TimeIcon instead of the button (that has the p-dialog-header-icon css class) , the implements the drag logic instead of closing. I have added the css class of the TimesIcon to fix the bug.

Copy link

vercel bot commented Apr 23, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primeng ⬜️ Ignored (Inspect) Visit Preview Apr 24, 2024 8:23am

@cetincakiroglu cetincakiroglu merged commit bca8a74 into primefaces:master Apr 26, 2024
4 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.

Dialog: Dialog moves to another position instead of closing after pressing close button
2 participants