Commit b3aa5e38903ac987a1ed857eeba1392ff581a7ea

Authored by Rijn
2 parents 35deac77 48dd8ebf
Showing 2 changed files with 3 additions and 8 deletions   Show diff stats
@@ -76,14 +76,8 @@ Normal browsers and Internet Explorer 9+. @@ -76,14 +76,8 @@ Normal browsers and Internet Explorer 9+.
76 76
77 ## Links 77 ## Links
78 78
  79 +- [TalkingData](https://github.com/TalkingData)
79 - [Vue](https://github.com/vuejs/vue) 80 - [Vue](https://github.com/vuejs/vue)
80 - [Webpack](https://github.com/webpack/webpack) 81 - [Webpack](https://github.com/webpack/webpack)
81 - [ionicons](https://github.com/driftyco/ionicons) 82 - [ionicons](https://github.com/driftyco/ionicons)
82 - [Ant Design](https://github.com/ant-design/ant-design) 83 - [Ant Design](https://github.com/ant-design/ant-design)
83 -  
84 -## Donation  
85 -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 :)  
86 -  
87 -<p align="center">  
88 - <img src="https://raw.githubusercontent.com/iview/iview/master/assets/pay.png">  
89 -</p>  
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();