From da3537ac5170a65cb5dab87b8fccf6188144a7a8 Mon Sep 17 00:00:00 2001 From: Tobias Andersen Date: Thu, 12 Jan 2017 17:18:48 +0100 Subject: [PATCH] Always navigate to day view when action is navigate.DATE --- src/Calendar.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Calendar.js b/src/Calendar.js index 2a870b2f3..bce089cd0 100644 --- a/src/Calendar.js +++ b/src/Calendar.js @@ -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){