Simon Egersand
2017-07-29 5377a9c3033f36d6adddc3aefcde415d50fdb3c1
DateTime.js
@@ -16,6 +16,7 @@
      onFocus: TYPES.func,
      onBlur: TYPES.func,
      onChange: TYPES.func,
      onViewModeChange: TYPES.func,
      locale: TYPES.string,
      utc: TYPES.bool,
      input: TYPES.bool,
@@ -41,6 +42,7 @@
         onFocus: nof,
         onBlur: nof,
         onChange: nof,
         onViewModeChange: nof,
         timeFormat: true,
         timeConstraints: {},
         dateFormat: true,
@@ -221,6 +223,7 @@
   showView: function( view ) {
      var me = this;
      return function() {
         me.state.currentView !== view && me.props.onViewModeChange( view );
         me.setState({ currentView: view });
      };
   },
@@ -237,6 +240,7 @@
            viewDate: me.state.viewDate.clone()[ type ]( parseInt(e.target.getAttribute('data-value'), 10) ).startOf( type ),
            currentView: nextViews[ type ]
         });
         me.props.onViewModeChange( nextViews[ type ] );
      };
   },