diff --git a/packages/react-widgets/src/DateTimePickerInput.js b/packages/react-widgets/src/DateTimePickerInput.js index 9c2acfcbd..2aa82f1a1 100644 --- a/packages/react-widgets/src/DateTimePickerInput.js +++ b/packages/react-widgets/src/DateTimePickerInput.js @@ -7,6 +7,7 @@ import Input from './Input' import { date as dateLocalizer } from './util/localizers' import * as CustomPropTypes from './util/PropTypes' import * as Props from './util/Props' +import cn from 'classnames'; @polyfillLifecycles class DateTimePickerInput extends React.Component { @@ -23,6 +24,8 @@ class DateTimePickerInput extends React.Component { disabled: CustomPropTypes.disabled, readOnly: CustomPropTypes.disabled, + + className: PropTypes.string } state = {} @@ -71,7 +74,7 @@ class DateTimePickerInput extends React.Component { } render() { - let { disabled, readOnly } = this.props + let { disabled, readOnly, className } = this.props let { textValue } = this.state let props = Props.omitOwn(this) @@ -80,7 +83,7 @@ class DateTimePickerInput extends React.Component {