From 8b69a68a65c65cf1c5e253e4d8c43202ad064bca Mon Sep 17 00:00:00 2001 From: metaabstract <8529603+MetaAbstract@users.noreply.github.com> Date: Mon, 11 May 2020 17:46:09 +0300 Subject: [PATCH] add ref to popup Other case click outside is outside of the all component, not popup. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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