We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
attachShadow({shadyUpgradeFragment})
1 parent 8d7def7 commit 3af9f34Copy full SHA for 3af9f34
lib/mixins/element-mixin.js
@@ -672,12 +672,8 @@ export const ElementMixin = dedupingMixin(base => {
672
if (n.attachShadow) {
673
if (dom) {
674
if (!n.shadowRoot) {
675
- if (window.ShadyDOM && ShadyDOM['attachDom']) {
676
- ShadyDOM['attachDom'](dom, this, {mode: 'open'});
677
- } else {
678
- n.attachShadow({mode: 'open'});
679
- n.shadowRoot.appendChild(dom);
680
- }
+ n.attachShadow({mode: 'open', shadyUpgradeFragment: dom});
+ n.shadowRoot.appendChild(dom);
681
}
682
if (syncInitialRender && window.ShadyDOM) {
683
ShadyDOM.flushInitial(n.shadowRoot);
0 commit comments