diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue
index 429d551..6130866 100644
--- a/src/components/modal/modal.vue
+++ b/src/components/modal/modal.vue
@@ -5,7 +5,7 @@
-
+
@@ -140,6 +140,7 @@
dragging: false
},
modalIndex: this.handleGetModalIndex(), // for Esc close the top modal
+ isMouseTriggerIn: false, // #5800
};
},
computed: {
@@ -243,10 +244,17 @@
}
},
handleWrapClick (event) {
+ if (this.isMouseTriggerIn) {
+ this.isMouseTriggerIn = false;
+ return;
+ }
// use indexOf,do not use === ,because ivu-modal-wrap can have other custom className
const className = event.target.getAttribute('class');
if (className && className.indexOf(`${prefixCls}-wrap`) > -1) this.handleMask();
},
+ handleMousedown () {
+ this.isMouseTriggerIn = true;
+ },
cancel () {
this.close();
},
--
libgit2 0.21.4