Skip to content

Commit 94548e5

Browse files
authored
using renderInput instead renderExpandableInput was left out (#1386)
1 parent dffff46 commit 94548e5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

demo/src/screens/componentScreens/DateTimePickerScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class DateTimePickerScreen extends Component {
7070
containerStyle={{marginVertical: 20}}
7171
title={'Date'}
7272
placeholder={'Select a date'}
73-
renderExpandableInput={this.renderCustomInput}
73+
renderInput={this.renderCustomInput}
7474
dateFormat={'MMM D, YYYY'}
7575
// value={new Date('2015-03-25T12:00:00-06:30')}
7676
/>

src/components/dateTimePicker/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,13 @@ class DateTimePicker extends Component {
274274

275275
render() {
276276
const textInputProps = TextField.extractOwnProps(this.props);
277+
const {renderInput} = this.props;
277278

278279
return (
279280
<TextField
280281
{...textInputProps}
281282
value={this.getStringValue()}
283+
renderExpandableInput={renderInput}
282284
expandable
283285
renderExpandable={this.renderExpandable}
284286
onToggleExpandableModal={this.onToggleExpandableModal}

0 commit comments

Comments
 (0)