Skip to content

Commit

Permalink
(fix) allow zero as a value for number inputs (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
arodidev authored Jun 7, 2024
1 parent 469b415 commit 1f88bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/inputs/number/number.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const NumberField: React.FC<FormFieldProps> = ({ question, onChange, handler, pr
max={Number(question.questionOptions.max) || undefined}
min={Number(question.questionOptions.min) || undefined}
name={question.id}
value={field.value || ''}
value={field.value ?? ''}
allowEmpty={true}
size="lg"
hideSteppers={true}
Expand Down

0 comments on commit 1f88bae

Please sign in to comment.