Skip to content

Commit

Permalink
fix(calendar): arrow keys on endCalendar when startCal has future month
Browse files Browse the repository at this point in the history
Selecting a future month on a startCalendar didn't allow to use arrows on the endCalendar, since it was not refreshed before showing it.
  • Loading branch information
prudho authored Jul 2, 2021
1 parent 70f7bc3 commit 0f8087d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/definitions/modules/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ $.fn.calendar = function(parameters) {
//if this is a range calendar, focus the container or input. This will open the popup from its event listeners.
var endModule = module.get.calendarModule(settings.endCalendar);
if (endModule) {
endModule.refresh();
if (endModule.setting('on') !== 'focus') {
endModule.popup('show');
}
Expand Down

0 comments on commit 0f8087d

Please sign in to comment.