Layne Anderson
2017-01-08 583af6d199035baa66dd99bf7cbc9014e5ad0ff3
DateTime.js
@@ -157,18 +157,22 @@
      ;
      if ( nextProps.value !== this.props.value ||
            formats.datetime !== this.getFormats( this.props ).datetime ){
            formats.datetime !== this.getFormats( this.props ).datetime ) {
            update = this.getStateFromProps( nextProps );
      }
      if ( update.open === undefined ){
         if ( this.props.closeOnSelect && this.state.currentView !== 'time' ){
      if ( update.open === undefined ) {
         if ( this.props.closeOnSelect && this.state.currentView !== 'time' ) {
            update.open = false;
         }
         else {
            update.open = this.state.open;
         }
      }
      if ( nextProps.viewMode !== this.props.viewMode ) {
         update.currentView = nextProps.viewMode;
      }
      this.setState( update );
   },