Skip to content

Commit b0505ce

Browse files
authored
fix(framework): allow the creation of components with static area content only (#1450)
1 parent a10fde5 commit b0505ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/base/src/UI5Element.js

+4
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ class UI5Element extends HTMLElement {
485485
* @private
486486
*/
487487
_updateShadowRoot() {
488+
if (!this.constructor._needsShadowDOM()) {
489+
return;
490+
}
491+
488492
let styleToPrepend;
489493
const renderResult = this.constructor.template(this);
490494

0 commit comments

Comments
 (0)