mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +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);
|
||||
}
|
||||
|
||||
disconnectedCallback(): void {
|
||||
super.disconnectedCallback();
|
||||
// @ts-ignore
|
||||
this.hovered = false;
|
||||
// @ts-ignore
|
||||
this.pressed = false;
|
||||
}
|
||||
|
||||
detach() {
|
||||
super.detach();
|
||||
this.attachableTouchController.detach();
|
||||
|
||||
Reference in New Issue
Block a user