Skip to content

Commit ac22224

Browse files
committed
fix: prevent functional fallthrough props from being applied to VaporTransition components
1 parent e1626b3 commit ac22224

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/runtime-vapor/src/component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,10 @@ export function setupComponent(
411411
)
412412
if (root) {
413413
renderEffect(() => {
414-
const attrs = isFunction(component)
415-
? getFunctionalFallthrough(instance.attrs)
416-
: instance.attrs
414+
const attrs =
415+
isFunction(component) && component.displayName !== 'VaporTransition'
416+
? getFunctionalFallthrough(instance.attrs)
417+
: instance.attrs
417418
if (attrs) applyFallthroughProps(root, attrs)
418419
})
419420
} else if (

0 commit comments

Comments
 (0)