Skip to content

Commit

Permalink
Upgrade child nodes after realm initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Mar 27, 2024
1 parent fa80618 commit a23a405
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/ninety-kids-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chialab/quantum": patch
---

Upgrade child nodes after realm initialization.
4 changes: 4 additions & 0 deletions src/Realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ export class Realm {
}
});

if (typeof customElements !== 'undefined') {
customElements.upgrade(this._fragment);
}

this._notifyUpdate();
}

Expand Down

0 comments on commit a23a405

Please sign in to comment.