mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 127 forks source link

isDisable is not working as expected? #141

Open Sagar535 opened 4 years ago

Sagar535 commented 4 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 4 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/