diff --git a/README.md b/README.md index b00b66f0..2311941e 100644 --- a/README.md +++ b/README.md @@ -76,14 +76,8 @@ Normal browsers and Internet Explorer 9+. ## Links +- [TalkingData](https://github.com/TalkingData) - [Vue](https://github.com/vuejs/vue) - [Webpack](https://github.com/webpack/webpack) - [ionicons](https://github.com/driftyco/ionicons) - [Ant Design](https://github.com/ant-design/ant-design) - -## Donation -iView is an MIT licensed open source project and completely free to use, but if it is helpful to you, you can buy me a coffee :) - -

- -

diff --git a/src/components/modal/modal.vue b/src/components/modal/modal.vue index 0ace4915..51a529b1 100644 --- a/src/components/modal/modal.vue +++ b/src/components/modal/modal.vue @@ -132,7 +132,8 @@ }, handleWrapClick (event) { // 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 () { this.close();