Correct missing inputClassName property

This commit is contained in:
Eric Schultz 2018-10-09 11:50:51 -05:00
parent 313bb5f45f
commit 6607f1e9e7

View file

@ -8,13 +8,13 @@ import {HoudiniField} from "../../lib/houdini_form";
import ReactInput from "./form/ReactInput";
export const BasicField = observer((props:{field:Field, placeholder?:string, label?:string, wrapperClassName?:string}) =>{
export const BasicField = observer((props:{field:Field, placeholder?:string, label?:string, wrapperClassName?:string, inputClassNames?:string}) =>{
let field = props.field as HoudiniField
return <LabeledFieldComponent
inputId={props.field.id} labelText={field.label} inError={field.hasError} error={field.error}
inStickyError={field.hasServerError} stickyError={field.serverError}
className={props.wrapperClassName} >
<ReactInput field={field} label={props.label} placeholder={props.placeholder} className="form-control"/>
<ReactInput field={field} label={props.label} placeholder={props.placeholder} className={`form-control ${props.inputClassNames || ''}`}/>
</LabeledFieldComponent>
})