Skip to content

Commit

Permalink
numeric <input> for level params
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Sep 13, 2024
1 parent 14bd59d commit cfe1a70
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,10 @@ function App() {
<label>min level:</label>
</div>
<input
type="text"
type="number"
min="0"
max="30"
required
value={minLevel()}
onInput={(e) => {
setMinLevel(+e.target.value || 1);
Expand All @@ -517,7 +520,10 @@ function App() {
<label>max level:</label>
</div>
<input
type="text"
type="number"
min="0"
max="30"
required
value={maxLevel()}
onInput={(e) => {
setMaxLevel(+e.target.value || 1);
Expand Down

0 comments on commit cfe1a70

Please sign in to comment.