Commit b3aa5e38903ac987a1ed857eeba1392ff581a7ea
Merge commit '48dd8ebf00ad9ee05e3c37540aca7aa1407bd6bc' into 295
Showing
2 changed files
with
3 additions
and
8 deletions
Show diff stats
README.md
| ... | ... | @@ -76,14 +76,8 @@ Normal browsers and Internet Explorer 9+. |
| 76 | 76 | |
| 77 | 77 | ## Links |
| 78 | 78 | |
| 79 | +- [TalkingData](https://github.com/TalkingData) | |
| 79 | 80 | - [Vue](https://github.com/vuejs/vue) |
| 80 | 81 | - [Webpack](https://github.com/webpack/webpack) |
| 81 | 82 | - [ionicons](https://github.com/driftyco/ionicons) |
| 82 | 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 | 132 | }, |
| 133 | 133 | handleWrapClick (event) { |
| 134 | 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 | 138 | cancel () { |
| 138 | 139 | this.close(); | ... | ... |