Skip to content

Commit 005ba04

Browse files
committed
fix: prevent infinite recursion in vShow's setDisplay when handling Vapor components.
1 parent b07fa60 commit 005ba04

File tree

1 file changed

+1
-1
lines changed
  • packages/runtime-vapor/src/directives

1 file changed

+1
-1
lines changed

packages/runtime-vapor/src/directives/vShow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function applyVShow(target: Block, source: () => any): void {
4141

4242
function setDisplay(target: Block, value: unknown): void {
4343
if (isVaporComponent(target)) {
44-
return setDisplay(target, value)
44+
return setDisplay(target.block, value)
4545
}
4646
if (isArray(target)) {
4747
if (target.length === 0) return

0 commit comments

Comments
 (0)