Skip to content

Commit

Permalink
Merge pull request jquense#265 from nxtedition/fix-navigate-to-day-view
Browse files Browse the repository at this point in the history
Always navigate to day view when action is navigate.DATE
  • Loading branch information
jquense authored Jan 12, 2017
2 parents 7fff51c + da3537a commit 6b4724d
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 6b4724d

Please sign in to comment.