mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-14 13:31:10 +00:00
Stop propogation of event
This commit is contained in:
@@ -172,13 +172,13 @@ export class HaTimePicker extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _hoursChanged(ev: CustomEvent<ClampedValue>) {
|
private _hoursChanged(ev: CustomEvent<ClampedValue>) {
|
||||||
|
ev.stopPropagation?.();
|
||||||
this._hours = ev.detail.value;
|
this._hours = ev.detail.value;
|
||||||
console.log("hoursChanged", ev.detail);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private _minutesChanged(ev: CustomEvent<ClampedValue>) {
|
private _minutesChanged(ev: CustomEvent<ClampedValue>) {
|
||||||
|
ev.stopPropagation?.();
|
||||||
this._minutes = ev.detail.value;
|
this._minutes = ev.detail.value;
|
||||||
console.log("minutesChanged", ev.detail);
|
|
||||||
if (ev.detail.clamped) {
|
if (ev.detail.clamped) {
|
||||||
if (ev.detail.value === 0) {
|
if (ev.detail.value === 0) {
|
||||||
this._hoursChanged({
|
this._hoursChanged({
|
||||||
@@ -205,8 +205,8 @@ export class HaTimePicker extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _secondsChanged(ev: CustomEvent<ClampedValue>) {
|
private _secondsChanged(ev: CustomEvent<ClampedValue>) {
|
||||||
|
ev.stopPropagation?.();
|
||||||
this._seconds = ev.detail.value;
|
this._seconds = ev.detail.value;
|
||||||
console.log("secondsChanged", ev.detail);
|
|
||||||
if (ev.detail.clamped) {
|
if (ev.detail.clamped) {
|
||||||
if (ev.detail.value === 0) {
|
if (ev.detail.value === 0) {
|
||||||
this._minutesChanged({
|
this._minutesChanged({
|
||||||
|
|||||||
Reference in New Issue
Block a user