Gabriel Velo
2017-02-04 8e56aa8afb7829352f6a9e2754933d4c2f1fae81
fix for #163 (componentWillReceiveProps() is not honouring old state) (#165)

1 files modified
9 ■■■■ changed files
DateTime.js 9 ●●●● patch | view | raw | blame | history
DateTime.js
@@ -161,13 +161,8 @@
            update = this.getStateFromProps( nextProps );
        }
        if ( update.open === undefined ) {
            if ( this.props.closeOnSelect && this.state.currentView !== 'time' ) {
                update.open = false;
            }
            else {
                update.open = this.state.open;
            }
        if ( update.open === undefined ){
            update.open = this.state.open;
        }
        
        if ( nextProps.viewMode !== this.props.viewMode ) {