Skip to content

Commit

Permalink
Fix minor syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvdm committed Nov 19, 2020
1 parent 719b039 commit 6262448
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/Components/Formlessly/Formlessly.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Formlessly extends Component {
name: fieldName,
value: fieldValues[fieldName],
inputKey: `${name}-${fieldName}`,
hasError: objHasValue(errors[fieldName]).toString(),
haserror: objHasValue(errors[fieldName]).toString(),
...prettyFields
}
}
Expand Down Expand Up @@ -148,7 +148,7 @@ class Formlessly extends Component {

const inputUI = Object.entries(fields).map(([fieldName]) => {
const inputProps = this.getInputProps(fieldName)
const customComponentInputProps = { ...inputProps }
// const customComponentInputProps = { ...inputProps }

return fields[fieldName].customComponent !== undefined ? (
fields[fieldName].customComponent(inputProps)
Expand Down Expand Up @@ -180,7 +180,6 @@ class Formlessly extends Component {
className='formlessly__form'
onSubmit={e => this.handleSubmit(e)}
onFocus={e => this.onElementFocus(e.target.name)}
onBlur={e => this.onElementBlur(e.target.name)}
noValidate={noValidate}
>
{children !== undefined
Expand Down

0 comments on commit 6262448

Please sign in to comment.