File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { OptionalMutableData } from '../mixins/mutable-data.js';
14
14
import { GestureEventListeners } from '../mixins/gesture-event-listeners.js' ;
15
15
import { strictTemplatePolicy } from '../utils/settings.js' ;
16
16
import { wrap } from '../utils/wrap.js' ;
17
+ import { legacyOptimizations } from '../utils/settings.js' ;
17
18
18
19
/**
19
20
* @constructor
@@ -75,7 +76,9 @@ export class DomBind extends domBindBase {
75
76
* @return {void }
76
77
*/
77
78
connectedCallback ( ) {
78
- this . style . display = 'none' ;
79
+ if ( ! legacyOptimizations ) {
80
+ this . style . display = 'none' ;
81
+ }
79
82
this . render ( ) ;
80
83
}
81
84
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { enqueueDebouncer, flush } from '../utils/flush.js';
15
15
import { microTask } from '../utils/async.js' ;
16
16
import { root } from '../utils/path.js' ;
17
17
import { wrap } from '../utils/wrap.js' ;
18
+ import { legacyOptimizations } from '../utils/settings.js' ;
18
19
19
20
/**
20
21
* The `<dom-if>` element will stamp a light-dom `<template>` child when
@@ -134,7 +135,9 @@ export class DomIf extends PolymerElement {
134
135
*/
135
136
connectedCallback ( ) {
136
137
super . connectedCallback ( ) ;
137
- this . style . display = 'none' ;
138
+ if ( ! legacyOptimizations ) {
139
+ this . style . display = 'none' ;
140
+ }
138
141
if ( this . if ) {
139
142
this . __debounceRender ( ) ;
140
143
}
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { OptionalMutableData } from '../mixins/mutable-data.js';
16
16
import { matches , translate } from '../utils/path.js' ;
17
17
import { timeOut , microTask } from '../utils/async.js' ;
18
18
import { wrap } from '../utils/wrap.js' ;
19
+ import { legacyOptimizations } from '../utils/settings.js' ;
19
20
20
21
/**
21
22
* @constructor
@@ -320,7 +321,9 @@ export class DomRepeat extends domRepeatBase {
320
321
*/
321
322
connectedCallback ( ) {
322
323
super . connectedCallback ( ) ;
323
- this . style . display = 'none' ;
324
+ if ( ! legacyOptimizations ) {
325
+ this . style . display = 'none' ;
326
+ }
324
327
// only perform attachment if the element was previously detached.
325
328
if ( this . __isDetached ) {
326
329
this . __isDetached = false ;
You can’t perform that action at this time.
0 commit comments