diff --git a/src/DateTimeRangePicker.jsx b/src/DateTimeRangePicker.jsx index 5a32f38..0d6239c 100644 --- a/src/DateTimeRangePicker.jsx +++ b/src/DateTimeRangePicker.jsx @@ -78,7 +78,7 @@ export default class DateTimeRangePicker extends PureComponent { } } - onDateChange = ([valueFrom, valueTo], closeWidgets = true) => { + onDateChange = ([valueFrom, valueTo], closeWidgets = this.props.closeWidgets) => { const { value } = this.props; const [prevValueFrom, prevValueTo] = [].concat(value);