Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit d63f9c3

Browse files
committed
fix(Form): Fix invalid properties for maxLength, minLength, autoComplete
1 parent e789258 commit d63f9c3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/components/Form/Form.react.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export type Props = {|
3737
+className?: string,
3838
+action?: string,
3939
+method?: string,
40-
+autocomplete: "on" | "off",
40+
+autoComplete: "on" | "off",
4141
|};
4242

4343
function Form({
@@ -46,23 +46,23 @@ function Form({
4646
action,
4747
method,
4848
onSubmit,
49-
autocomplete,
49+
autoComplete,
5050
}: Props): React.Node {
5151
return (
5252
<form
5353
className={className}
5454
onSubmit={onSubmit}
5555
action={action}
5656
method={method}
57-
autocomplete={autocomplete}
57+
autoComplete={autoComplete}
5858
>
5959
{children}
6060
</form>
6161
);
6262
}
6363

6464
Form.defaultProps = {
65-
autocomplete: "off",
65+
autoComplete: "off",
6666
};
6767

6868
Form.Group = FormGroup;

src/components/Form/FormInput.react.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type FormStyle = {|
3030
+value?: string | number,
3131
+min?: string | number,
3232
+max?: string | number,
33-
+minlength?: string | number,
34-
+maxlength?: string | number,
33+
+minLength?: string | number,
34+
+maxLength?: string | number,
3535
+disabled?: boolean,
3636
+readOnly?: boolean,
3737
+autoFocus?: boolean,
@@ -74,8 +74,8 @@ function FormInput(props: Props): React.Node {
7474
value,
7575
min,
7676
max,
77-
minlength,
78-
maxlength,
77+
minLength,
78+
maxLength,
7979
checked,
8080
onChange,
8181
onMouseEnter,
@@ -120,8 +120,8 @@ function FormInput(props: Props): React.Node {
120120
value,
121121
min,
122122
max,
123-
minlength,
124-
maxlength,
123+
minLength,
124+
maxLength,
125125
disabled,
126126
readOnly,
127127
autoFocus,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy