Skip to content

Commit

Permalink
fix(framework): Provide a workaround for Firefox 74 shadow root bug (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev committed Mar 25, 2020
1 parent 538a79a commit 7cc67a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/base/src/UI5Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ class UI5Element extends HTMLElement {
await this._processChildren();
}

if (!this.shadowRoot) { // Workaround for Firefox74 bug
await Promise.resolve();
}

await RenderScheduler.renderImmediately(this);
this._domRefReadyPromise._deferredResolve();
if (typeof this.onEnterDOM === "function") {
Expand Down

0 comments on commit 7cc67a7

Please sign in to comment.