Dialog: Release mouse outside the dialog would close the dialog when dismissableMask is true. #6116
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
This cause wierd behavoir when there is a text box in the dialog. If user select text by dragging mouse across it and release mouse outside of the dialog, the dialog would be closed.
Reproducer
https://stackblitz.com/edit/primevue-3-vite-issue-template-dxjbyc?file=src%2FApp.vue
PrimeVue version
3.53
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
Chrome latest
Steps to reproduce the behavior
Select text in user name input box by dragging mouse over it and release mouse outside dialog.
Expected behavior
The dialog should not be closed unless the user click outside the dialog.
I.e. mouse down inside the dialog and mouse up outside should not trigger onMaskClick event.
The text was updated successfully, but these errors were encountered: