Skip to content

Commit 43a0959

Browse files
Merge pull request #157 from beyzanur-seyhan/155_input_minimum_value
Fixed: 155: Star range filter allow negative input
2 parents d7f43a6 + f8ca741 commit 43a0959

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/StarsFilter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function StarsFilter() {
5353
field.onChange(parseInt(e.target.value, 10));
5454
}}
5555
placeholder="Star's Starting Range"
56+
min="0"
5657
/>
5758
)}
5859
control={control}
@@ -68,6 +69,7 @@ export default function StarsFilter() {
6869
field.onChange(parseInt(e.target.value, 10));
6970
}}
7071
placeholder="Star's Finish Range"
72+
min="0"
7173
/>
7274
)}
7375
control={control}

0 commit comments

Comments
 (0)