Skip to content

Commit

Permalink
fix(Application): Re-connect the disconnected top-layer elements
Browse files Browse the repository at this point in the history
  • Loading branch information
a11delavar committed Feb 19, 2024
1 parent e422557 commit 9e1361b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/Application/ApplicationTopLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ export class ApplicationTopLayer extends Component {
}
`
}

override disconnectedCallback() {
const children = this.children
super.disconnectedCallback()
for (const element of children) {
ApplicationTopLayer.instance.appendChild(element)
}
}
}

declare global {
Expand Down
2 changes: 1 addition & 1 deletion packages/Application/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@a11d/lit-application",
"version": "0.1.11",
"version": "0.1.12",
"description": "Lit-based application shell.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 9e1361b

Please sign in to comment.