Skip to content

Commit

Permalink
feat: Update InputField component to conditionally set max and min at…
Browse files Browse the repository at this point in the history
…tributes for number type
  • Loading branch information
anemne committed Aug 26, 2024
1 parent 2be8285 commit 75f4505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/forms/inputField/InputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ const InputField = ({
autoComplete={autoComplete}
autoCorrect={autoCorrect}
type={type}
max={max}
min={min}
max={type === "number" ? max : undefined}
min={type === "number" ? min : undefined}
className={styles.input}
spellCheck={spellCheck}
value={value}
Expand Down

0 comments on commit 75f4505

Please sign in to comment.