Skip to content

Commit 624cb19

Browse files
committed
refactor: remove fallthrough props from Transition and TransitionGroup
1 parent 624acc6 commit 624cb19

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

packages/runtime-vapor/src/components/Transition.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import type { Block, TransitionBlock, VaporTransitionHooks } from '../block'
2323
import {
2424
type FunctionalVaporComponent,
2525
type VaporComponentInstance,
26-
applyFallthroughProps,
2726
isVaporComponent,
2827
} from '../component'
2928
import { isArray } from '@vue/shared'
@@ -101,15 +100,6 @@ export const VaporTransition: FunctionalVaporComponent = /*@__PURE__*/ decorate(
101100
}
102101
})
103102

104-
// fallthrough attrs
105-
if (
106-
instance.hasFallthrough &&
107-
Object.keys(attrs).length &&
108-
children instanceof Element
109-
) {
110-
renderEffect(() => applyFallthroughProps(children, attrs))
111-
}
112-
113103
const hooks = applyTransitionHooks(children, {
114104
state: useTransitionState(),
115105
props: resolvedProps!,

packages/runtime-vapor/src/components/TransitionGroup.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ import {
3030
import {
3131
type ObjectVaporComponent,
3232
type VaporComponentInstance,
33-
applyFallthroughProps,
3433
isVaporComponent,
3534
} from '../component'
3635
import { isForBlock } from '../apiCreateFor'
37-
import { renderEffect } from '../renderEffect'
3836
import { createElement } from '../dom/node'
3937
import { isFragment } from '../fragment'
4038

@@ -153,10 +151,6 @@ export const VaporTransitionGroup: ObjectVaporComponent = decorate({
153151
if (tag) {
154152
const container = createElement(tag)
155153
insert(slottedBlock, container)
156-
// fallthrough attrs
157-
if (instance!.hasFallthrough && Object.keys(instance!.attrs).length) {
158-
renderEffect(() => applyFallthroughProps(container, instance!.attrs))
159-
}
160154
return container
161155
} else {
162156
return slottedBlock

0 commit comments

Comments
 (0)