Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isDisable is not working as expected? #141

Open
Sagar535 opened this issue Sep 26, 2019 · 1 comment
Open

isDisable is not working as expected? #141

Sagar535 opened this issue Sep 26, 2019 · 1 comment

Comments

@Sagar535
Copy link

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
Copy link

lubber-de commented Oct 5, 2019

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants