From 01cc10fe77affcb36afcddac184ae8377e4c8b12 Mon Sep 17 00:00:00 2001 From: jlison Date: Mon, 9 Sep 2019 20:15:03 -0700 Subject: [PATCH] fix: fix input type not being passed to input --- src/components/Input.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 3614ee5..7f82c53 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -9,6 +9,7 @@ import { InputGroupText, Label, } from 'reactstrap'; +import {InputType} from 'reactstrap/lib/Input'; import {DefaultInputProps, FormConfig} from '../interfaces/FormConfig'; @@ -18,7 +19,7 @@ export default ({elementConfig, formHooks, valid}: DefaultInputProps) => { const {errors, formState, getValues, register, triggerValidation} = formHooks; const values = getValues(); - const {addon, className, name, placeholder} = elementConfig; + const {addon, className, inputType, name, placeholder} = elementConfig; const getInputRegisters = ( elementConfig: FormConfig, @@ -56,6 +57,7 @@ export default ({elementConfig, formHooks, valid}: DefaultInputProps) => { )}