Fix calendar (#6691)

This commit is contained in:
Bram Kragten
2020-08-24 20:32:55 +02:00
committed by GitHub
parent 5503cd0589
commit 358c5205d2
2 changed files with 33 additions and 37 deletions

View File

@@ -1,17 +1,15 @@
import "@material/mwc-icon-button/mwc-icon-button";
import {
css,
CSSResult,
customElement,
html,
TemplateResult,
property,
LitElement,
CSSResult,
css,
property,
TemplateResult,
} from "lit-element";
import { fireEvent } from "../common/dom/fire_event";
import type { ToggleButton } from "../types";
import "./ha-svg-icon";
@customElement("ha-button-toggle-group")
@@ -40,7 +38,7 @@ export class HaButtonToggleGroup extends LitElement {
}
private _handleClick(ev): void {
this.active = ev.target.value;
this.active = ev.currentTarget.value;
fireEvent(this, "value-changed", { value: this.active });
}