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