Browse Source

fix errors in console

Henry Jameson 2 years ago
parent
commit
6fc62a771a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/popover/popover.js

+ 1 - 1
src/components/popover/popover.js

@@ -262,7 +262,7 @@ const Popover = {
     },
     },
     onClickOutside (e) {
     onClickOutside (e) {
       if (this.hidden) return
       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.$el.contains(e.target)) return
       if (this.childrenShown.size > 0) return
       if (this.childrenShown.size > 0) return
       this.hidePopover()
       this.hidePopover()