This repository was archived by the owner on Mar 1, 2024. It is now read-only.
File tree 2 files changed +10
-10
lines changed 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export type Props = {|
37
37
+ className ?: string ,
38
38
+ action ?: string ,
39
39
+ method ?: string ,
40
- + autocomplete : "on" | "off" ,
40
+ + autoComplete : "on" | "off" ,
41
41
| } ;
42
42
43
43
function Form ( {
@@ -46,23 +46,23 @@ function Form({
46
46
action,
47
47
method,
48
48
onSubmit,
49
- autocomplete ,
49
+ autoComplete ,
50
50
} : Props ) : React . Node {
51
51
return (
52
52
< form
53
53
className = { className }
54
54
onSubmit = { onSubmit }
55
55
action = { action }
56
56
method = { method }
57
- autocomplete = { autocomplete }
57
+ autoComplete = { autoComplete }
58
58
>
59
59
{ children }
60
60
</ form >
61
61
) ;
62
62
}
63
63
64
64
Form . defaultProps = {
65
- autocomplete : "off" ,
65
+ autoComplete : "off" ,
66
66
} ;
67
67
68
68
Form . Group = FormGroup ;
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ type FormStyle = {|
30
30
+ value ? : string | number ,
31
31
+ min ? : string | number ,
32
32
+ max ? : string | number ,
33
- + minlength ? : string | number ,
34
- + maxlength ? : string | number ,
33
+ + minLength ? : string | number ,
34
+ + maxLength ? : string | number ,
35
35
+ disabled ? : boolean ,
36
36
+ readOnly ? : boolean ,
37
37
+ autoFocus ? : boolean ,
@@ -74,8 +74,8 @@ function FormInput(props: Props): React.Node {
74
74
value,
75
75
min,
76
76
max,
77
- minlength ,
78
- maxlength ,
77
+ minLength ,
78
+ maxLength ,
79
79
checked,
80
80
onChange,
81
81
onMouseEnter,
@@ -120,8 +120,8 @@ function FormInput(props: Props): React.Node {
120
120
value,
121
121
min,
122
122
max,
123
- minlength ,
124
- maxlength ,
123
+ minLength ,
124
+ maxLength ,
125
125
disabled,
126
126
readOnly,
127
127
autoFocus,
You can’t perform that action at this time.
0 commit comments