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

Commit bdd8f0c

Browse files
committed
fix(FormInput): add autoComplete prop
fixes #428
1 parent af40df3 commit bdd8f0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Form/FormInput.react.js

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export type Props = {|
5454
* Wraps the input in Form.Group and adds a label
5555
*/
5656
+label?: string,
57+
+autoComplete?: "on" | "off",
5758
|};
5859

5960
/**
@@ -95,6 +96,7 @@ function FormInput(props: Props): React.Node {
9596
autoFocus,
9697
required,
9798
label,
99+
autoComplete,
98100
} = props;
99101
const type = props.type || "text";
100102

@@ -139,6 +141,7 @@ function FormInput(props: Props): React.Node {
139141
onCopy,
140142
onCut,
141143
onPaste,
144+
autoComplete,
142145
};
143146

144147
const contents = !icon ? (

0 commit comments

Comments
 (0)