From e0ce292671b2716e6fbbb028f829e7211597ac66 Mon Sep 17 00:00:00 2001 From: Amer Harb Date: Wed, 16 Oct 2024 01:01:02 +0200 Subject: [PATCH] add inputMode --- packages/numerals-web/src/app/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/numerals-web/src/app/page.tsx b/packages/numerals-web/src/app/page.tsx index b6e94f7..7d2e430 100644 --- a/packages/numerals-web/src/app/page.tsx +++ b/packages/numerals-web/src/app/page.tsx @@ -78,6 +78,8 @@ export default function Home() { dir="auto" placeholder="Type number here" type="number" + pattern="-?[0-9]*(\.[0-9]+)?" + inputMode="decimal" value={textBoxValue} onChange={(e) => { setTextBoxValue(e.target.value)