mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 12:30:47 +00:00
Clear ha-ripple state on disconnected (#27139)
This commit is contained in:
@@ -16,6 +16,14 @@ export class HaRipple extends Ripple {
|
|||||||
this.attachableTouchController.attach(control);
|
this.attachableTouchController.attach(control);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disconnectedCallback(): void {
|
||||||
|
super.disconnectedCallback();
|
||||||
|
// @ts-ignore
|
||||||
|
this.hovered = false;
|
||||||
|
// @ts-ignore
|
||||||
|
this.pressed = false;
|
||||||
|
}
|
||||||
|
|
||||||
detach() {
|
detach() {
|
||||||
super.detach();
|
super.detach();
|
||||||
this.attachableTouchController.detach();
|
this.attachableTouchController.detach();
|
||||||
|
|||||||
Reference in New Issue
Block a user