mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
use the correct inputmode (#13722)
This commit is contained in:
parent
23e5a47b3b
commit
b3d64fc52a
@ -51,8 +51,9 @@ export class HaNumberSelector extends LitElement {
|
|||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
<ha-textfield
|
<ha-textfield
|
||||||
inputMode="numeric"
|
.inputMode=${(this.selector.number.step || 1) % 1 !== 0
|
||||||
pattern="[0-9]+([\\.][0-9]+)?"
|
? "decimal"
|
||||||
|
: "numeric"}
|
||||||
.label=${this.selector.number.mode !== "box" ? undefined : this.label}
|
.label=${this.selector.number.mode !== "box" ? undefined : this.label}
|
||||||
.placeholder=${this.placeholder}
|
.placeholder=${this.placeholder}
|
||||||
class=${classMap({ single: this.selector.number.mode === "box" })}
|
class=${classMap({ single: this.selector.number.mode === "box" })}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user