Skip to content

Commit 4bf8626

Browse files
author
yinhangfeng
committed
fix(runtime-core): fix the issue of passing incorrect parentComponent to patch when KeepAlive is activated
1 parent 4f79253 commit 4bf8626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/components/KeepAlive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const KeepAliveImpl: ComponentOptions = {
143143
vnode,
144144
container,
145145
anchor,
146-
instance,
146+
instance.parent,
147147
parentSuspense,
148148
namespace,
149149
vnode.slotScopeIds,

0 commit comments

Comments
 (0)