mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
804 stars 126 forks source link

isDisable is not working as expected? #141

Open Sagar535 opened 5 years ago

Sagar535 commented 5 years ago
isDisabled: function (date, mode) {
          console.log('checking if the date is disabled');
          const day = date.getDate();
          if (day == 29 || day == 30 || day == 31) {
              return true;
          }
          return false;
      },

I'm trying to disable the date that has day greater than 28 but it is not working...?

lubber-de commented 5 years ago

Your code is working totally fine, at least when using https://github.com/fomantic/Fomantic-UI/ where the calendar has been merged into and gets further maintenance. See https://jsfiddle.net/cuf5qwy0/