Skip to content

Commit 76656f6

Browse files
Revert "fix(runtime): patch non-scoped / non-shadow components"
This reverts commit 8b007e9.
1 parent 8b007e9 commit 76656f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime/bootstrap-custom-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const proxyCustomElement = (Cstr: any, compactMeta: d.ComponentRuntimeMet
4545

4646
// TODO(STENCIL-914): this check and `else` block can go away and be replaced by just the `scoped` check
4747
if (BUILD.experimentalSlotFixes) {
48-
if (BUILD.slot && cmpMeta.$flags$ & CMP_FLAGS.hasSlotRelocation) {
48+
if (BUILD.scoped && cmpMeta.$flags$ & CMP_FLAGS.scopedCssEncapsulation) {
4949
// This check is intentionally not combined with the surrounding `experimentalSlotFixes` check
5050
// since, moving forward, we only want to patch the pseudo shadow DOM when the component is scoped
5151
patchPseudoShadowDom(Cstr.prototype);

src/runtime/bootstrap-lazy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const bootstrapLazy = (lazyBundles: d.LazyBundlesRuntimeData, options: d.
193193
if (BUILD.experimentalSlotFixes) {
194194
// This check is intentionally not combined with the surrounding `experimentalSlotFixes` check
195195
// since, moving forward, we only want to patch the pseudo shadow DOM when the component is scoped
196-
if (BUILD.slot && cmpMeta.$flags$ & CMP_FLAGS.hasSlotRelocation) {
196+
if (BUILD.scoped && cmpMeta.$flags$ & CMP_FLAGS.scopedCssEncapsulation) {
197197
patchPseudoShadowDom(HostElement.prototype);
198198
}
199199
} else {

0 commit comments

Comments
 (0)