Closed
Description
when currentView = 'days'
and update.open === undefined
, if the datepicker state was open
, it should remain open
. In other words, when currentView = 'days
and the parent component re render executing datepicker componentWillReceiveProps()
, datepicker will close.
if ( update.open === undefined ){
if ( this.props.closeOnSelect && this.state.currentView !== 'time' ){
update.open = false;
}
else {
update.open = this.state.open;
}
}
Metadata
Metadata
Assignees
Labels
No labels