File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -113,14 +113,14 @@ class UI5Element extends HTMLElement {
113
113
114
114
this . _inDOM = true ;
115
115
116
+ if ( slotsAreManaged ) {
117
+ // always register the observer before yielding control to the main thread (await)
118
+ this . _startObservingDOMChildren ( ) ;
119
+ await this . _processChildren ( ) ;
120
+ }
121
+
116
122
// Render the Shadow DOM
117
123
if ( needsShadowDOM ) {
118
- if ( slotsAreManaged ) {
119
- // always register the observer before yielding control to the main thread (await)
120
- this . _startObservingDOMChildren ( ) ;
121
- await this . _processChildren ( ) ;
122
- }
123
-
124
124
if ( ! this . shadowRoot ) { // Workaround for Firefox74 bug
125
125
await Promise . resolve ( ) ;
126
126
}
@@ -130,7 +130,7 @@ class UI5Element extends HTMLElement {
130
130
}
131
131
132
132
RenderScheduler . register ( this ) ;
133
- await RenderScheduler . renderImmediately ( this ) ;
133
+ RenderScheduler . renderImmediately ( this ) ;
134
134
this . _domRefReadyPromise . _deferredResolve ( ) ;
135
135
this . _fullyConnected = true ;
136
136
if ( typeof this . onEnterDOM === "function" ) {
@@ -150,11 +150,11 @@ class UI5Element extends HTMLElement {
150
150
151
151
this . _inDOM = false ;
152
152
153
- if ( needsShadowDOM ) {
154
- if ( slotsAreManaged ) {
155
- this . _stopObservingDOMChildren ( ) ;
156
- }
153
+ if ( slotsAreManaged ) {
154
+ this . _stopObservingDOMChildren ( ) ;
155
+ }
157
156
157
+ if ( needsShadowDOM ) {
158
158
RenderScheduler . deregister ( this ) ;
159
159
if ( this . _fullyConnected ) {
160
160
if ( typeof this . onExitDOM === "function" ) {
You can’t perform that action at this time.
0 commit comments