From 2c602aeceed2c2203a6beada7fd7b5dbe9999605 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 23 Sep 2025 06:53:07 +0200 Subject: [PATCH] Clear ha-ripple state on disconnected (#27139) --- src/components/ha-ripple.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/ha-ripple.ts b/src/components/ha-ripple.ts index 3b57810145..596e04bf1f 100644 --- a/src/components/ha-ripple.ts +++ b/src/components/ha-ripple.ts @@ -16,6 +16,14 @@ export class HaRipple extends Ripple { this.attachableTouchController.attach(control); } + disconnectedCallback(): void { + super.disconnectedCallback(); + // @ts-ignore + this.hovered = false; + // @ts-ignore + this.pressed = false; + } + detach() { super.detach(); this.attachableTouchController.detach();