Commit 48dd8ebf00ad9ee05e3c37540aca7aa1407bd6bc

Authored by 梁灏
1 parent cfb4aad4

update Modal

update Modal
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/components/modal/modal.vue
@@ -132,7 +132,8 @@ @@ -132,7 +132,8 @@
132 }, 132 },
133 handleWrapClick (event) { 133 handleWrapClick (event) {
134 // use indexOf,do not use === ,because ivu-modal-wrap can have other custom className 134 // use indexOf,do not use === ,because ivu-modal-wrap can have other custom className
135 - if (event.target.getAttribute('class').indexOf(`${prefixCls}-wrap`) > -1) this.mask(); 135 + const className = event.target.getAttribute('class');
  136 + if (className && className.indexOf(`${prefixCls}-wrap`) > -1) this.mask();
136 }, 137 },
137 cancel () { 138 cancel () {
138 this.close(); 139 this.close();