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

Commit 202e63e

Browse files
authored
Merge pull request #375 from nating/master
feat(FormInput): add autoFocus to FormInput
2 parents 313e14a + 2ad8aca commit 202e63e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Form/FormInput.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type FormStyle = {|
3030
+value?: string | number,
3131
+disabled?: boolean,
3232
+readOnly?: boolean,
33+
+autoFocus?: boolean,
3334
+checked?: boolean,
3435
|};
3536

@@ -82,6 +83,7 @@ function FormInput(props: Props): React.Node {
8283
onPaste,
8384
disabled,
8485
readOnly,
86+
autoFocus,
8587
label,
8688
} = props;
8789
const type = props.type || "text";
@@ -108,6 +110,7 @@ function FormInput(props: Props): React.Node {
108110
value,
109111
disabled,
110112
readOnly,
113+
autoFocus,
111114
onChange,
112115
onMouseEnter,
113116
onMouseLeave,

0 commit comments

Comments
 (0)