Skip to content

Commit

Permalink
Merge pull request #5 from patelaryan7751/issue#1
Browse files Browse the repository at this point in the history
Disallow negative inputs
  • Loading branch information
gigincg committed Nov 23, 2022
2 parents c8f60c9 + 963455a commit 6cc75fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Range.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default function Range({ value, label, onChange, min = 1, max = 100 }) {
onChange={(e) => {
onChange(parseInt(e.target.value));
}}
min={min}
max={max}
className="w-20 text-center border-0 h-6"
/>
</label>
Expand Down

0 comments on commit 6cc75fb

Please sign in to comment.