Clear ha-ripple state on disconnected (#27139)

This commit is contained in:
Paul Bottein
2025-09-23 06:53:07 +02:00
committed by GitHub
parent cbf96898fe
commit 2c602aecee

View File

@@ -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();