bulma-calendar icon indicating copy to clipboard operation
bulma-calendar copied to clipboard

maxDate has to be in the future

Open Niek opened this issue 5 years ago • 1 comments

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]
});

Niek avatar Oct 22 '19 10:10 Niek

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.

babajidemm-bd avatar Dec 03 '19 11:12 babajidemm-bd