update Modal
update Modal
This commit is contained in:
parent
cfb4aad426
commit
48dd8ebf00
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@
|
||||||
},
|
},
|
||||||
handleWrapClick (event) {
|
handleWrapClick (event) {
|
||||||
// use indexOf,do not use === ,because ivu-modal-wrap can have other custom className
|
// use indexOf,do not use === ,because ivu-modal-wrap can have other custom className
|
||||||
if (event.target.getAttribute('class').indexOf(`${prefixCls}-wrap`) > -1) this.mask();
|
const className = event.target.getAttribute('class');
|
||||||
|
if (className && className.indexOf(`${prefixCls}-wrap`) > -1) this.mask();
|
||||||
},
|
},
|
||||||
cancel () {
|
cancel () {
|
||||||
this.close();
|
this.close();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue