Skip to content

Commit 2206dba

Browse files
committed
docs: add comments explaining attribute fallthrough prevention for slots, consistent with VDOM Teleport behavior.
1 parent c298156 commit 2206dba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime-vapor/src/fragment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ export class DynamicFragment extends VaporFragment {
206206
if (this.nodes instanceof Element) {
207207
applyFallthroughProps(this.nodes, this.parentComponent!.attrs)
208208
} else if (__DEV__ && this.anchorLabel === 'slot') {
209+
// preventing attrs fallthrough
210+
// consistent with VDOM Teleport behavior
209211
warnExtraneousAttributes(this.parentComponent!.attrs)
210212
}
211213
}

0 commit comments

Comments
 (0)