mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 06:16:33 +00:00
Validate hours after tabbing out of field during time input (#13949)
This commit is contained in:
parent
bb0884c4bb
commit
e08c12c4dd
@ -139,7 +139,7 @@ export class HaBaseTimeInput extends LitElement {
|
|||||||
.value=${this.days.toFixed()}
|
.value=${this.days.toFixed()}
|
||||||
.label=${this.dayLabel}
|
.label=${this.dayLabel}
|
||||||
name="days"
|
name="days"
|
||||||
@input=${this._valueChanged}
|
@change=${this._valueChanged}
|
||||||
@focusin=${this._onFocus}
|
@focusin=${this._onFocus}
|
||||||
no-spinner
|
no-spinner
|
||||||
.required=${this.required}
|
.required=${this.required}
|
||||||
@ -160,7 +160,7 @@ export class HaBaseTimeInput extends LitElement {
|
|||||||
.value=${this.hours.toFixed()}
|
.value=${this.hours.toFixed()}
|
||||||
.label=${this.hourLabel}
|
.label=${this.hourLabel}
|
||||||
name="hours"
|
name="hours"
|
||||||
@input=${this._valueChanged}
|
@change=${this._valueChanged}
|
||||||
@focusin=${this._onFocus}
|
@focusin=${this._onFocus}
|
||||||
no-spinner
|
no-spinner
|
||||||
.required=${this.required}
|
.required=${this.required}
|
||||||
@ -179,7 +179,7 @@ export class HaBaseTimeInput extends LitElement {
|
|||||||
inputmode="numeric"
|
inputmode="numeric"
|
||||||
.value=${this._formatValue(this.minutes)}
|
.value=${this._formatValue(this.minutes)}
|
||||||
.label=${this.minLabel}
|
.label=${this.minLabel}
|
||||||
@input=${this._valueChanged}
|
@change=${this._valueChanged}
|
||||||
@focusin=${this._onFocus}
|
@focusin=${this._onFocus}
|
||||||
name="minutes"
|
name="minutes"
|
||||||
no-spinner
|
no-spinner
|
||||||
@ -200,7 +200,7 @@ export class HaBaseTimeInput extends LitElement {
|
|||||||
inputmode="numeric"
|
inputmode="numeric"
|
||||||
.value=${this._formatValue(this.seconds)}
|
.value=${this._formatValue(this.seconds)}
|
||||||
.label=${this.secLabel}
|
.label=${this.secLabel}
|
||||||
@input=${this._valueChanged}
|
@change=${this._valueChanged}
|
||||||
@focusin=${this._onFocus}
|
@focusin=${this._onFocus}
|
||||||
name="seconds"
|
name="seconds"
|
||||||
no-spinner
|
no-spinner
|
||||||
@ -221,7 +221,7 @@ export class HaBaseTimeInput extends LitElement {
|
|||||||
type="number"
|
type="number"
|
||||||
.value=${this._formatValue(this.milliseconds, 3)}
|
.value=${this._formatValue(this.milliseconds, 3)}
|
||||||
.label=${this.millisecLabel}
|
.label=${this.millisecLabel}
|
||||||
@input=${this._valueChanged}
|
@change=${this._valueChanged}
|
||||||
@focusin=${this._onFocus}
|
@focusin=${this._onFocus}
|
||||||
name="milliseconds"
|
name="milliseconds"
|
||||||
no-spinner
|
no-spinner
|
||||||
|
Loading…
x
Reference in New Issue
Block a user