From d1f0912395a65b1e4ddbe4181c16aea920e3f89e Mon Sep 17 00:00:00 2001 From: Liz Li Date: Tue, 8 Aug 2017 10:00:37 +0800 Subject: [PATCH] Proposed fixing for #510: "TypeError: popover is null" issue in firefox. --- src/utils/popoverMixins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/popoverMixins.js b/src/utils/popoverMixins.js index 746998f5..6437bdae 100644 --- a/src/utils/popoverMixins.js +++ b/src/utils/popoverMixins.js @@ -39,7 +39,7 @@ export default { toggle (e) { if (e && this.trigger === 'contextmenu') e.preventDefault() if (!(this.show = !this.show)) { return } - setTimeout(() => { + Vue.nextTick(() => { const popover = this.$els.popover const trigger = this.$els.trigger.children[0] switch (this.placement) {