From ffec0f58dd47ddf5363f87e16886f08a0931c9d4 Mon Sep 17 00:00:00 2001 From: Albin Berglund Date: Mon, 4 Nov 2024 11:26:53 +0100 Subject: [PATCH 1/2] fix NotFoundError when removing backdrop --- libs/core/src/lib/components/panel/panel.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/core/src/lib/components/panel/panel.ts b/libs/core/src/lib/components/panel/panel.ts index 19604eb..fcf8296 100644 --- a/libs/core/src/lib/components/panel/panel.ts +++ b/libs/core/src/lib/components/panel/panel.ts @@ -289,7 +289,9 @@ export class BergPanelElement extends WebComponent { } 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) ); } From b5b542c0a120d338cc111d6b8ac8dd2599e02394 Mon Sep 17 00:00:00 2001 From: Albin Berglund Date: Mon, 4 Nov 2024 11:28:34 +0100 Subject: [PATCH 2/2] bump --- libs/angular/package.json | 2 +- libs/core/package.json | 2 +- libs/react/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/angular/package.json b/libs/angular/package.json index 6bb4302..c6fba17 100644 --- a/libs/angular/package.json +++ b/libs/angular/package.json @@ -1,6 +1,6 @@ { "name": "@berg-layout/angular", - "version": "7.0.1", + "version": "7.0.2", "license": "MIT", "keywords": [ "layout", diff --git a/libs/core/package.json b/libs/core/package.json index 0dbe3cf..4626b56 100644 --- a/libs/core/package.json +++ b/libs/core/package.json @@ -1,6 +1,6 @@ { "name": "@berg-layout/core", - "version": "7.0.1", + "version": "7.0.2", "license": "MIT", "keywords": [ "layout", diff --git a/libs/react/package.json b/libs/react/package.json index f90ab3e..e9db00d 100644 --- a/libs/react/package.json +++ b/libs/react/package.json @@ -1,6 +1,6 @@ { "name": "@berg-layout/react", - "version": "7.0.1", + "version": "7.0.2", "license": "MIT", "keywords": [ "layout",