Skip to content

Commit

Permalink
fix(custom-element): prevent injecting child styles if shadowRoot is …
Browse files Browse the repository at this point in the history
…false
  • Loading branch information
edison1105 committed Jan 22, 2025
1 parent 2921685 commit 585eabe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-dom/src/apiCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ export class VueElement
* @internal
*/
_injectChildStyle(comp: ConcreteComponent & CustomElementOptions): void {
this._applyStyles(comp.styles, comp)
if (this._def.shadowRoot !== false) {
this._applyStyles(comp.styles, comp)
}
}

/**
Expand Down

0 comments on commit 585eabe

Please sign in to comment.