From ea5e38ff3782a0cb9835c4864db43a2eb3ae6e61 Mon Sep 17 00:00:00 2001 From: Krivoschekov Date: Tue, 31 Mar 2020 17:01:07 +0300 Subject: [PATCH 1/2] className prop now forwarded to DateTimPickerInput if passed from parent --- packages/react-widgets/src/DateTimePickerInput.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/react-widgets/src/DateTimePickerInput.js b/packages/react-widgets/src/DateTimePickerInput.js index 9c2acfcbd..530131f1c 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 = {} @@ -80,7 +83,7 @@ class DateTimePickerInput extends React.Component { Date: Tue, 31 Mar 2020 17:10:29 +0300 Subject: [PATCH 2/2] fix --- packages/react-widgets/src/DateTimePickerInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-widgets/src/DateTimePickerInput.js b/packages/react-widgets/src/DateTimePickerInput.js index 530131f1c..2aa82f1a1 100644 --- a/packages/react-widgets/src/DateTimePickerInput.js +++ b/packages/react-widgets/src/DateTimePickerInput.js @@ -74,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)