Skip to content

Commit 0d96cef

Browse files
committed
chore: revert light DOM slots in fallback template
not behavior we want
1 parent fc943df commit 0d96cef

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

packages/@lwc/ssr-runtime/src/render.ts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, salesforce.com, inc.
2+
* Copyright (c) 2025, Salesforce, Inc.
33
* All rights reserved.
44
* SPDX-License-Identifier: MIT
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
@@ -157,7 +157,7 @@ export function renderAttrsNoYield(
157157

158158
export async function* fallbackTmpl(
159159
shadowSlottedContent: SlottedContentGenerator | null,
160-
lightSlottedContent: SlottedContentGeneratorMap | null,
160+
_lightSlottedContent: SlottedContentGeneratorMap | null,
161161
_scopedSlottedContent: SlottedContentGeneratorMap | null,
162162
Cmp: LightningElementConstructor,
163163
instance: LightningElement
@@ -167,20 +167,13 @@ export async function* fallbackTmpl(
167167
if (shadowSlottedContent) {
168168
yield* shadowSlottedContent(instance);
169169
}
170-
} else if (lightSlottedContent) {
171-
const defaultSlot = lightSlottedContent[''];
172-
if (defaultSlot?.length > 0) {
173-
for (const content of defaultSlot) {
174-
yield* content(instance);
175-
}
176-
}
177170
}
178171
}
179172

180173
export function fallbackTmplNoYield(
181174
emit: Emit,
182175
shadowSlottedContent: SlottedContentEmitter | null,
183-
lightSlottedContent: SlottedContentEmitterMap | null,
176+
_lightSlottedContent: SlottedContentEmitterMap | null,
184177
_scopedSlottedContent: SlottedContentEmitterMap | null,
185178
Cmp: LightningElementConstructor,
186179
instance: LightningElement
@@ -190,13 +183,6 @@ export function fallbackTmplNoYield(
190183
if (shadowSlottedContent) {
191184
shadowSlottedContent(emit, instance);
192185
}
193-
} else if (lightSlottedContent) {
194-
const defaultSlot = lightSlottedContent[''];
195-
if (defaultSlot?.length > 0) {
196-
for (const content of defaultSlot) {
197-
content(emit, instance);
198-
}
199-
}
200186
}
201187
}
202188

0 commit comments

Comments
 (0)