From 1fc31d99f11e00ea8f7c962338a09a7df3369615 Mon Sep 17 00:00:00 2001 From: Arthur Xavier Date: Thu, 23 May 2019 10:07:42 -0300 Subject: [PATCH] Add autoFocus prop to Input --- src/Lumi/Components/Input.purs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Lumi/Components/Input.purs b/src/Lumi/Components/Input.purs index b46b099a..7be08a32 100644 --- a/src/Lumi/Components/Input.purs +++ b/src/Lumi/Components/Input.purs @@ -92,6 +92,7 @@ displayStep (Step e) = show e type InputProps = { "type" :: String , autoComplete :: String + , autoFocus :: Boolean , checked :: CheckboxState , disabled :: Boolean , max :: Nullable Number @@ -125,6 +126,7 @@ input = makeStateless component $ element lumiInputElement <<< mapProps , "data-variant": show props.variant , "type": props."type" , autoComplete: props.autoComplete + , autoFocus: props.autoFocus , checked: props.checked == On , className: "lumi" , disabled: props.disabled @@ -149,6 +151,7 @@ text_ :: InputProps text_ = { "type": "text" , autoComplete: "on" + , autoFocus: false , checked: Off , disabled: false , max: toNullable Nothing