Skip to content

Commit 285e05f

Browse files
committed
test: update transition test
1 parent a58eaf5 commit 285e05f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/_util/transition.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { BaseTransitionProps, CSSProperties, Ref } from 'vue';
2-
import { onBeforeUpdate } from 'vue';
2+
import { onUpdated } from 'vue';
33
import { getCurrentInstance } from 'vue';
44
import { defineComponent, nextTick, Transition as T, TransitionGroup as TG } from 'vue';
55

@@ -52,7 +52,7 @@ if (process.env.NODE_ENV === 'test') {
5252
inheritAttrs: false,
5353
setup(_props, { slots, attrs }) {
5454
const instance = getCurrentInstance();
55-
onBeforeUpdate(() => {
55+
onUpdated(() => {
5656
const child = instance.subTree.children[0];
5757
if (child && child.dirs && child.dirs[0]) {
5858
const value = child.dirs[0].value;

0 commit comments

Comments
 (0)