bulma-calendar
bulma-calendar copied to clipboard
maxDate has to be in the future
There is an issue where maxDate has to be in the future. Having the same date as the current day causes issues. Workaround:
let tomorrow = new Date();
tomorrow.setTime(tomorrow.getTime() + 86400000);
bulmaCalendar.attach('#date', {
maxDate: tomorrow,
disabledDates: [tomorrow]
});
Ah, similar to this issue: https://github.com/Wikiki/bulma-calendar/issues/219
@niek Thanks for the workaround! Though ugly, but it would do for now.