We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dismiss
close
1 parent ddbf476 commit 062a912Copy full SHA for 062a912
src/components/toast/CToastClose.ts
@@ -18,13 +18,13 @@ const CToastClose = defineComponent({
18
/**
19
* Event called before the dissmiss animation has started.
20
*/
21
- 'dismiss',
+ 'close',
22
],
23
setup(props, { slots, emit }) {
24
// eslint-disable-next-line no-unused-vars
25
const updateVisible = inject('updateVisible') as (visible: boolean) => void
26
const handleClose = () => {
27
- emit('dismiss')
+ emit('close')
28
updateVisible(false)
29
}
30
return () =>
0 commit comments