Skip to content

Commit 795f2a7

Browse files
authored
Fix editable inputs
1 parent 8c1d602 commit 795f2a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/index.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ class DatetimeRangePicker extends Component {
110110
}
111111

112112
onStartDateChange(date) {
113+
if (typeof date === 'string') {
114+
return;
115+
}
116+
113117
const options = {
114118
start: date,
115119
};
@@ -125,6 +129,10 @@ class DatetimeRangePicker extends Component {
125129
}
126130

127131
onEndDateChange(date) {
132+
if (typeof date === 'string') {
133+
return;
134+
}
135+
128136
this.setState({ end: date }, () => {
129137
this.props.onChange(this.propsToPass());
130138
this.props.onEndDateChange(this.propsToPass().end);

0 commit comments

Comments
 (0)