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

Commit

Permalink
fix(FormInput): add autoComplete prop
Browse files Browse the repository at this point in the history
fixes #428
  • Loading branch information
jonthomp committed Jun 1, 2019
1 parent af40df3 commit bdd8f0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Form/FormInput.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export type Props = {|
* Wraps the input in Form.Group and adds a label
*/
+label?: string,
+autoComplete?: "on" | "off",
|};

/**
Expand Down Expand Up @@ -95,6 +96,7 @@ function FormInput(props: Props): React.Node {
autoFocus,
required,
label,
autoComplete,
} = props;
const type = props.type || "text";

Expand Down Expand Up @@ -139,6 +141,7 @@ function FormInput(props: Props): React.Node {
onCopy,
onCut,
onPaste,
autoComplete,
};

const contents = !icon ? (
Expand Down

0 comments on commit bdd8f0c

Please sign in to comment.