diff --git a/README.md b/README.md index 78982ec..6814e21 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ $ npm install vue-click-outside @@ -40,7 +40,7 @@ export default { mounted () { // prevent click outside event with popupItem. - this.popupItem = this.$el + this.popupItem = this.$refs.mypopup }, // do not forget this section