From ad4ea380406451145ca3a9b7f0f59fda9c12caef Mon Sep 17 00:00:00 2001 From: bndw Date: Thu, 27 Apr 2023 07:52:10 -0700 Subject: fix: force numeric keyboard on mobile --- app/components/calculator.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/components/calculator.tsx b/app/components/calculator.tsx index 532781d..3ce91e7 100644 --- a/app/components/calculator.tsx +++ b/app/components/calculator.tsx @@ -79,6 +79,7 @@ export const Calculator = () => { onChange={(e) => handleUpdate("sats", e.target.value)} value={sats} type="text" + pattern="[0-9]*" id="sats" name="sats" /> @@ -89,6 +90,7 @@ export const Calculator = () => { onChange={(e) => handleUpdate("btc", e.target.value)} value={btc} type="text" + pattern="[0-9]*" id="btc" name="btc" /> @@ -102,6 +104,7 @@ export const Calculator = () => { onChange={(e) => handleUpdate("usd", e.target.value)} value={usd} type="text" + pattern="[0-9]*" id="usd" name="usd" /> -- cgit v1.2.3