Skip to content

Commit 8e73b21

Browse files
authored
Merge pull request yuche#513 from OneOfTheWorld/master
Proposed fixing for yuche#510: "TypeError: popover is null" issue in fire…
2 parents 23b9c49 + d1f0912 commit 8e73b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/popoverMixins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
toggle (e) {
4040
if (e && this.trigger === 'contextmenu') e.preventDefault()
4141
if (!(this.show = !this.show)) { return }
42-
setTimeout(() => {
42+
Vue.nextTick(() => {
4343
const popover = this.$els.popover
4444
const trigger = this.$els.trigger.children[0]
4545
switch (this.placement) {

0 commit comments

Comments
 (0)