Add inputmode attribute for number inputs

This commit is contained in:
Andrew Kingston 2021-10-01 11:15:15 +01:00
parent e4c6b61346
commit 1b3cd1a2a4
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@
on:input={onInput}
on:keyup={updateValueOnEnter}
{type}
inputmode={type === "number" ? "decimal" : "text"}
class="spectrum-Textfield-input"
/>
</div>