Skip to content

Commit

Permalink
Always navigate to day view when action is navigate.DATE
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasandersen committed Jan 12, 2017
1 parent 9d31c18 commit da3537a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,15 +518,7 @@ let Calendar = React.createClass({
onNavigate(date, view)

if (action === navigate.DATE)
this._viewNavigate(date)
},

_viewNavigate(nextDate) {
let { view, date, culture } = this.props;

if (dates.eq(date, nextDate, view, localizer.startOfWeek(culture))) {
this.handleViewChange(views.DAY)
}
},

handleViewChange(view){
Expand Down

0 comments on commit da3537a

Please sign in to comment.