From d63f9c344f7ad0cc1844c1d89f2a629eb50007b2 Mon Sep 17 00:00:00 2001 From: Andrew Abraham Date: Mon, 22 Apr 2019 14:59:46 -0700 Subject: [PATCH] fix(Form): Fix invalid properties for maxLength, minLength, autoComplete --- src/components/Form/Form.react.js | 8 ++++---- src/components/Form/FormInput.react.js | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/Form/Form.react.js b/src/components/Form/Form.react.js index 6e5471a0..c2ae5304 100644 --- a/src/components/Form/Form.react.js +++ b/src/components/Form/Form.react.js @@ -37,7 +37,7 @@ export type Props = {| +className?: string, +action?: string, +method?: string, - +autocomplete: "on" | "off", + +autoComplete: "on" | "off", |}; function Form({ @@ -46,7 +46,7 @@ function Form({ action, method, onSubmit, - autocomplete, + autoComplete, }: Props): React.Node { return (
{children}
@@ -62,7 +62,7 @@ function Form({ } Form.defaultProps = { - autocomplete: "off", + autoComplete: "off", }; Form.Group = FormGroup; diff --git a/src/components/Form/FormInput.react.js b/src/components/Form/FormInput.react.js index d44004dd..f7f1fd67 100644 --- a/src/components/Form/FormInput.react.js +++ b/src/components/Form/FormInput.react.js @@ -30,8 +30,8 @@ type FormStyle = {| +value?: string | number, +min?: string | number, +max?: string | number, - +minlength?: string | number, - +maxlength?: string | number, + +minLength?: string | number, + +maxLength?: string | number, +disabled?: boolean, +readOnly?: boolean, +autoFocus?: boolean, @@ -74,8 +74,8 @@ function FormInput(props: Props): React.Node { value, min, max, - minlength, - maxlength, + minLength, + maxLength, checked, onChange, onMouseEnter, @@ -120,8 +120,8 @@ function FormInput(props: Props): React.Node { value, min, max, - minlength, - maxlength, + minLength, + maxLength, disabled, readOnly, autoFocus,