diff --git a/components/_util/transition.tsx b/components/_util/transition.tsx index 140e31713..704d3d22a 100644 --- a/components/_util/transition.tsx +++ b/components/_util/transition.tsx @@ -1,5 +1,5 @@ import type { BaseTransitionProps, CSSProperties, Ref } from 'vue'; -import { onBeforeUpdate } from 'vue'; +import { onUpdated } from 'vue'; import { getCurrentInstance } from 'vue'; import { defineComponent, nextTick, Transition as T, TransitionGroup as TG } from 'vue'; @@ -52,7 +52,7 @@ if (process.env.NODE_ENV === 'test') { inheritAttrs: false, setup(_props, { slots, attrs }) { const instance = getCurrentInstance(); - onBeforeUpdate(() => { + onUpdated(() => { const child = instance.subTree.children[0]; if (child && child.dirs && child.dirs[0]) { const value = child.dirs[0].value;