Skip to content

Commit

Permalink
fix(toast): hide asynchronously[#242]
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Nov 28, 2018
1 parent d321a0e commit 8a48bae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/toast/toast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export default {
this.$emit('hide')
},
hide() {
this.visible = false
setTimeout(() => {
this.visible = false
}, 0)
},
},
}
Expand Down

0 comments on commit 8a48bae

Please sign in to comment.