From 1b3cd1a2a464319fd067acc3e52ff07e64f61c4e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 1 Oct 2021 11:15:15 +0100 Subject: [PATCH] Add inputmode attribute for number inputs --- packages/bbui/src/Form/Core/TextField.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bbui/src/Form/Core/TextField.svelte b/packages/bbui/src/Form/Core/TextField.svelte index 926c3eda11..37989a291e 100644 --- a/packages/bbui/src/Form/Core/TextField.svelte +++ b/packages/bbui/src/Form/Core/TextField.svelte @@ -90,6 +90,7 @@ on:input={onInput} on:keyup={updateValueOnEnter} {type} + inputmode={type === "number" ? "decimal" : "text"} class="spectrum-Textfield-input" />