Skip to content

Commit

Permalink
keep the today class for disabled days | resolves #416
Browse files Browse the repository at this point in the history
  • Loading branch information
chmln committed Nov 18, 2016
1 parent 6a6fb30 commit 86d6487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/flatpickr.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,12 @@ function Flatpickr(element, config) {

dayElement.dateObj = currentDate;

if (equalDates(currentDate, self.now))
dayElement.classList.add("today");

if (!dateIsDisabled) {
dayElement.tabIndex = 0;

if (equalDates(currentDate, self.now))
dayElement.classList.add("today");

if (isDateSelected(currentDate)){
dayElement.classList.add("selected");
self.selectedDateElem = dayElement;
Expand Down

0 comments on commit 86d6487

Please sign in to comment.