From cf8935da7327801c6bfa21be114b9db1d362da4b Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 7 Oct 2023 15:36:03 -0700 Subject: [PATCH] Fix issue causing carousel to not correctly scroll. --- package.json | 2 +- src/components/carousel.ts | 1 + yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e7f479de..10b14726 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "custom-card-helpers": "^1.9.0", "date-fns": "^2.29.2", "date-fns-tz": "^1.3.7", - "embla-carousel": "8.0.0-rc12", + "embla-carousel": "8.0.0-rc14", "embla-carousel-wheel-gestures": "8.0.0-rc04", "home-assistant-js-websocket": "^8.0.0", "keycharm": "^0.4.0", diff --git a/src/components/carousel.ts b/src/components/carousel.ts index e122ea0f..453db5d1 100644 --- a/src/components/carousel.ts +++ b/src/components/carousel.ts @@ -60,6 +60,7 @@ export class FrigateCardCarousel extends LitElement { // plugins (which may have registered event handlers) to also be destroyed. // The carousel will automatically reconstruct if the component is re-rendered. this._carousel?.destroy(); + this._carousel = null; super.disconnectedCallback(); } diff --git a/yarn.lock b/yarn.lock index 4d52591e..88775fdf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2630,10 +2630,10 @@ __metadata: languageName: node linkType: hard -"embla-carousel@npm:8.0.0-rc12": - version: 8.0.0-rc12 - resolution: "embla-carousel@npm:8.0.0-rc12" - checksum: 553f33f562458d7fd0cd4eff1db96ac3a02352b620705d892eb3d9a297924fa12fedaf5a5aa03418dd41905ce80997a99f8aeca955d024d5a49a56f5c7fbe63b +"embla-carousel@npm:8.0.0-rc14": + version: 8.0.0-rc14 + resolution: "embla-carousel@npm:8.0.0-rc14" + checksum: 48f6b7420fbb5c6800e84fb15f37fbd9b2b951b36a3f30ff66ee6121d7e722bf6bc28bd986a83136651f216940ca8e472d569774e74bf2ed01e4f8e349f74289 languageName: node linkType: hard @@ -3346,7 +3346,7 @@ __metadata: custom-card-helpers: ^1.9.0 date-fns: ^2.29.2 date-fns-tz: ^1.3.7 - embla-carousel: 8.0.0-rc12 + embla-carousel: 8.0.0-rc14 embla-carousel-wheel-gestures: 8.0.0-rc04 eslint: ^8.23.0 eslint-config-airbnb-base: ^15.0.0