Correct missing inputClassName property
This commit is contained in:
parent
313bb5f45f
commit
6607f1e9e7
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
})
|
Loading…
Reference in a new issue