Skip to content

Commit 93316b8

Browse files
authored
Define "any" step value for "number" fields (#98)
This fixes validation for decimal values in number fields.
1 parent 998dd27 commit 93316b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ function FormField(props) {
120120
inputProps.type = 'range';
121121
else
122122
inputProps.type = 'number';
123+
inputProps.step = 'any'
123124

124125
InputField = FormInput;
125126

0 commit comments

Comments
 (0)