Skip to content

Commit

Permalink
fix(popup): hide asynchronously[#242]
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Nov 30, 2018
1 parent c2bcba5 commit 45ecd1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion components/popup/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
this.$_showPopupBox()
}
} else {
this.$_hidePopupBox()
setTimeout(() => {
this.$_hidePopupBox()
}, 0)
}
},
preventScrollExclude(val, oldVal) {
Expand Down
4 changes: 1 addition & 3 deletions components/toast/toast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ export default {
this.$emit('hide')
},
hide() {
setTimeout(() => {
this.visible = false
}, 0)
this.visible = false
},
},
}
Expand Down

0 comments on commit 45ecd1f

Please sign in to comment.