diff options
| author | bndw <ben@bdw.to> | 2023-04-27 07:52:10 -0700 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2023-04-27 07:52:10 -0700 |
| commit | ad4ea380406451145ca3a9b7f0f59fda9c12caef (patch) | |
| tree | e32a51f88e6a1bcbda1270effbee9352401c6b49 /app/components/calculator.tsx | |
| parent | 2b47b0e47cd234ceb2b226e18bc10053425e21f9 (diff) | |
fix: force numeric keyboard on mobile
Diffstat (limited to 'app/components/calculator.tsx')
| -rw-r--r-- | app/components/calculator.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
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 = () => { | |||
| 79 | onChange={(e) => handleUpdate("sats", e.target.value)} | 79 | onChange={(e) => handleUpdate("sats", e.target.value)} |
| 80 | value={sats} | 80 | value={sats} |
| 81 | type="text" | 81 | type="text" |
| 82 | pattern="[0-9]*" | ||
| 82 | id="sats" | 83 | id="sats" |
| 83 | name="sats" | 84 | name="sats" |
| 84 | /> | 85 | /> |
| @@ -89,6 +90,7 @@ export const Calculator = () => { | |||
| 89 | onChange={(e) => handleUpdate("btc", e.target.value)} | 90 | onChange={(e) => handleUpdate("btc", e.target.value)} |
| 90 | value={btc} | 91 | value={btc} |
| 91 | type="text" | 92 | type="text" |
| 93 | pattern="[0-9]*" | ||
| 92 | id="btc" | 94 | id="btc" |
| 93 | name="btc" | 95 | name="btc" |
| 94 | /> | 96 | /> |
| @@ -102,6 +104,7 @@ export const Calculator = () => { | |||
| 102 | onChange={(e) => handleUpdate("usd", e.target.value)} | 104 | onChange={(e) => handleUpdate("usd", e.target.value)} |
| 103 | value={usd} | 105 | value={usd} |
| 104 | type="text" | 106 | type="text" |
| 107 | pattern="[0-9]*" | ||
| 105 | id="usd" | 108 | id="usd" |
| 106 | name="usd" | 109 | name="usd" |
| 107 | /> | 110 | /> |
