Skip to content

Commit 062a912

Browse files
committed
refactor(CToastClose): change dismiss event to close
1 parent ddbf476 commit 062a912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/toast/CToastClose.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ const CToastClose = defineComponent({
1818
/**
1919
* Event called before the dissmiss animation has started.
2020
*/
21-
'dismiss',
21+
'close',
2222
],
2323
setup(props, { slots, emit }) {
2424
// eslint-disable-next-line no-unused-vars
2525
const updateVisible = inject('updateVisible') as (visible: boolean) => void
2626
const handleClose = () => {
27-
emit('dismiss')
27+
emit('close')
2828
updateVisible(false)
2929
}
3030
return () =>

0 commit comments

Comments
 (0)