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

Commit

Permalink
Merge pull request #375 from nating/master
Browse files Browse the repository at this point in the history
feat(FormInput): add autoFocus to FormInput
  • Loading branch information
AaronCoplan committed Nov 29, 2018
2 parents 313e14a + 2ad8aca commit 202e63e
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 @@ -30,6 +30,7 @@ type FormStyle = {|
+value?: string | number,
+disabled?: boolean,
+readOnly?: boolean,
+autoFocus?: boolean,
+checked?: boolean,
|};

Expand Down Expand Up @@ -82,6 +83,7 @@ function FormInput(props: Props): React.Node {
onPaste,
disabled,
readOnly,
autoFocus,
label,
} = props;
const type = props.type || "text";
Expand All @@ -108,6 +110,7 @@ function FormInput(props: Props): React.Node {
value,
disabled,
readOnly,
autoFocus,
onChange,
onMouseEnter,
onMouseLeave,
Expand Down

0 comments on commit 202e63e

Please sign in to comment.