kthornbloom / Monthly

A jQuery based responsive calendar
http://kthornbloom.com/monthly/
Other
316 stars 108 forks source link

Upon click on "Today" button whilst event list is shown calendar resets to current month with empty event list #62

Closed andriikhmelkov closed 7 years ago

andriikhmelkov commented 7 years ago

Steps:

  1. Select any other month than current.
  2. Click on any day to review list of events.
  3. Click on "Today" button.

Expected:

Actual:

I were able to fix it for myself by adding && $(parent + " .monthly-event-list").hide() to the following (hides events list):

// Reset button
$(parent + " .monthly-header-title").html(
    '<a href="#" class="monthly-header-title-date" onclick="return false">' + monthNames[month - 1] + " " + year + "</a>" + (settingCurrentMonth && $(parent + " .monthly-event-list").hide() ? "" : '<a href="#" class="monthly-reset"></a>'));
kthornbloom commented 7 years ago

Fixed (finally!)