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.
1 parent c7d1065 commit 7e16f96Copy full SHA for 7e16f96
src/constants/events.js
@@ -1,3 +1,5 @@
1
+import { isVue3 } from '../vue'
2
+
3
export const EVENT_NAME_ACTIVATE_TAB = 'activate-tab'
4
export const EVENT_NAME_BLUR = 'blur'
5
export const EVENT_NAME_CANCEL = 'cancel'
@@ -54,8 +56,8 @@ export const EVENT_NAME_TOGGLE = 'toggle'
54
56
export const EVENT_NAME_UNPAUSED = 'unpaused'
55
57
export const EVENT_NAME_UPDATE = 'update'
58
-export const HOOK_EVENT_NAME_BEFORE_DESTROY = 'hook:beforeDestroy'
-export const HOOK_EVENT_NAME_DESTROYED = 'hook:destroyed'
59
+export const HOOK_EVENT_NAME_BEFORE_DESTROY = isVue3 ? 'vnodeBeforeUnmount' : 'hook:beforeDestroy'
60
+export const HOOK_EVENT_NAME_DESTROYED = isVue3 ? 'vNodeUnmounted' : 'hook:destroyed'
61
62
export const MODEL_EVENT_NAME_PREFIX = 'update:'
63
0 commit comments