Skip to content

Commit

Permalink
Proposed fixing for yuche#510: "TypeError: popover is null" issue in …
Browse files Browse the repository at this point in the history
…firefox.
  • Loading branch information
Liz Li committed Aug 8, 2017
1 parent f14690b commit d1f0912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/popoverMixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d1f0912

Please sign in to comment.