From 2ad8acaf712f7ce2fabaf110cad6d6eb01642a32 Mon Sep 17 00:00:00 2001 From: Geoff Natin Date: Wed, 28 Nov 2018 22:07:31 +0000 Subject: [PATCH] feat(FormInput): add autoFocus to FormInput --- src/components/Form/FormInput.react.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Form/FormInput.react.js b/src/components/Form/FormInput.react.js index 4d7ceaa3..592c3e78 100644 --- a/src/components/Form/FormInput.react.js +++ b/src/components/Form/FormInput.react.js @@ -30,6 +30,7 @@ type FormStyle = {| +value?: string | number, +disabled?: boolean, +readOnly?: boolean, + +autoFocus?: boolean, +checked?: boolean, |}; @@ -82,6 +83,7 @@ function FormInput(props: Props): React.Node { onPaste, disabled, readOnly, + autoFocus, label, } = props; const type = props.type || "text"; @@ -108,6 +110,7 @@ function FormInput(props: Props): React.Node { value, disabled, readOnly, + autoFocus, onChange, onMouseEnter, onMouseLeave,