fix: number input handling
This commit is contained in:
parent
7ffd109ace
commit
c871417d47
|
|
@ -92,7 +92,7 @@ function App() {
|
||||||
placeholder="distance"
|
placeholder="distance"
|
||||||
min={1}
|
min={1}
|
||||||
value={stopDistance}
|
value={stopDistance}
|
||||||
onChange={(e) => setStopDistance(e.target.value)}
|
onChange={(e) => setStopDistance(parseInt(e.target.value, 10))}
|
||||||
/>
|
/>
|
||||||
<p>
|
<p>
|
||||||
<button type="button" onClick={registerAlarm}>
|
<button type="button" onClick={registerAlarm}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue