Skip to content

Commit 9e01575

Browse files
enagy27martijnrusschen
authored andcommitted
- Used classnames to handle undefined classname (Hacker0x01#1896)
1 parent f892bae commit 9e01575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ export default class DatePicker extends React.Component {
733733
placeholder: this.props.placeholderText,
734734
disabled: this.props.disabled,
735735
autoComplete: this.props.autoComplete,
736-
className: customInput.props.className + " " + className,
736+
className: classnames(customInput.props.className, className),
737737
title: this.props.title,
738738
readOnly: this.props.readOnly,
739739
required: this.props.required,

0 commit comments

Comments
 (0)