fix(Dialog): reset dragging state when closing

pull/6358/head
rob 2024-09-07 22:00:41 +12:00
parent 3564633889
commit f663868463
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ export default {
if (this.modal) {
!this.isUnstyled && addClass(this.mask, 'p-overlay-mask-leave');
}
if (this.dragging && this.documentDragEndListener) {
this.documentDragEndListener();
}
},
onLeave() {
this.$emit('hide');