commit: 6fc62a771a8e54ae84781805e2819094967237ac
parent 8ab30545b2b792ddae9cc439c3e617195e22d3ca
Author: Henry Jameson <me@hjkos.com>
Date: Sun, 31 Jul 2022 01:48:22 +0300
fix errors in console
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js
@@ -262,7 +262,7 @@ const Popover = {
},
onClickOutside (e) {
if (this.hidden) return
- if (this.$refs.content.contains(e.target)) return
+ if (this.$refs.content && this.$refs.content.contains(e.target)) return
if (this.$el.contains(e.target)) return
if (this.childrenShown.size > 0) return
this.hidePopover()