From 7cf6fc32c0ba658413d749c1c4c89b079e60de47 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Wed, 22 Jul 2020 14:41:06 +0300 Subject: [PATCH] wip --- src/components/popover/popover.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js index 76c5387b..9fcd0640 100644 --- a/src/components/popover/popover.js +++ b/src/components/popover/popover.js @@ -159,6 +159,7 @@ const Popover = { this.hidePopover() } } else if (this.trigger === 'hover' && this.isMobileLayout) { + console.log(this.isMobileLayout) // This is to enable using hover stuff with mobile: // on first touch it opens the popover, when touching the trigger // again it will do the click action. Can't use touch events as @@ -176,6 +177,8 @@ const Popover = { if (this.hidden) return if (this.$el.contains(e.target)) return this.hidePopover() + e.preventDefault() + e.stopPropagation() } }, updated () {