Skip to content

Commit 118eea4

Browse files
committed
refactor(CToast): emit the close event when toast is automatically close
1 parent 18d8ec4 commit 118eea4

File tree

1 file changed

+1
-0
lines changed
  • packages/coreui-vue/src/components/toast

1 file changed

+1
-0
lines changed

packages/coreui-vue/src/components/toast/CToast.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ const CToast = defineComponent({
115115
clearTimeout(timeout)
116116
timeout = window.setTimeout(() => {
117117
visible.value = false
118+
emit('close')
118119
}, props.delay)
119120
}
120121
})

0 commit comments

Comments
 (0)