Skip to content

Commit c384509

Browse files
committed
Fix #57: Use camelCase names for react component props
1 parent 4665344 commit c384509

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ui.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ function FormField(props) {
8383
}
8484

8585
if (props.schema.minLength || props.schema.minLength === 0)
86-
inputProps.minlength = props.schema.minLength;
86+
inputProps.minLength = props.schema.minLength;
8787

8888
if (props.schema.maxLength || props.schema.maxLength === 0)
89-
inputProps.maxlength = props.schema.maxLength;
89+
inputProps.maxLength = props.schema.maxLength;
9090

9191
break;
9292
case 'fileinput':
@@ -139,10 +139,10 @@ function FormField(props) {
139139
InputField = FormTextareaInput;
140140

141141
if (props.schema.minLength || props.schema.minLength === 0)
142-
inputProps.minlength = props.schema.minLength;
142+
inputProps.minLength = props.schema.minLength;
143143

144144
if (props.schema.maxLength || props.schema.maxLength === 0)
145-
inputProps.maxlength = props.schema.maxLength;
145+
inputProps.maxLength = props.schema.maxLength;
146146

147147
break;
148148
default:

0 commit comments

Comments
 (0)