Skip to content

Commit

Permalink
Optional chaining for _cloneChildren in classname
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBenJ committed Nov 8, 2018
1 parent dd81c6c commit e1e9c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Reforma/Reforma.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Reforma extends PureComponent<ReformaProps, ReformaState> {

const injectedProps = {
...fieldProps,
className: classNames(childClassName, fieldProps.className),
className: classNames(childClassName, fieldProps?.className),
onChange: this.onChange,
value: this.state[name],
error: errors[name]
Expand Down

0 comments on commit e1e9c95

Please sign in to comment.