Skip to content

Commit

Permalink
fix NotFoundError when removing backdrop (#49)
Browse files Browse the repository at this point in the history
* fix NotFoundError when removing backdrop

* bump
  • Loading branch information
blidblid authored Nov 4, 2024
1 parent 0895ce9 commit aa1532f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@berg-layout/angular",
"version": "7.0.1",
"version": "7.0.2",
"license": "MIT",
"keywords": [
"layout",
Expand Down
2 changes: 1 addition & 1 deletion libs/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@berg-layout/core",
"version": "7.0.1",
"version": "7.0.2",
"license": "MIT",
"keywords": [
"layout",
Expand Down
4 changes: 3 additions & 1 deletion libs/core/src/lib/components/panel/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ export class BergPanelElement extends WebComponent<BergPanelInputs> {
} else {
this.timeouts.push(
setTimeout(() => {
this.layout.shadowRoot?.removeChild(backdrop);
if (this.layout.shadowRoot?.contains(backdrop)) {
this.layout.shadowRoot.removeChild(backdrop);
}
}, BERG_PANEL_BACKDROP_ANIMATION_DURATION)
);
}
Expand Down
2 changes: 1 addition & 1 deletion libs/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@berg-layout/react",
"version": "7.0.1",
"version": "7.0.2",
"license": "MIT",
"keywords": [
"layout",
Expand Down

0 comments on commit aa1532f

Please sign in to comment.