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

minDate and maxDate navigation bug #275

Closed
grintor opened this issue Aug 3, 2021 · 1 comment
Closed

minDate and maxDate navigation bug #275

grintor opened this issue Aug 3, 2021 · 1 comment

Comments

@grintor
Copy link

grintor commented Aug 3, 2021

Your issue may already be reported!
Please search on the issue track before creating one.

  • [N] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • [Y] Are you running the latest version?
  • [Y] Are you reporting to the correct repository?

Bug Report

Environment

  • Extension version(s): 6.1.10
  • Bulma version: 0.9.3
  • OS: Windows 10
  • Browser: Chrome 92
  • How you are customizing the extension: no

Current Behavior
When the minDate and maxDate are set, and you use the arrows to switch between months, you can become trapped in a month until you close and reopen the calendar. (see attached video)

Input Code

  • Initialization code:
var calendars = bulmaCalendar.attach('[type="date"]', {
	'type': 'date',
	'showHeader': false,
	'showFooter': false,
	'dateFormat': 'yyyy-MM-dd',
	'minDate': moment().subtract(30, 'days').format('YYYY-MM-DD'),
	'maxDate': moment().format('YYYY-MM-DD'),
	'startDate': moment().format('YYYY-MM-DD'),
	'enableYearSwitch': false,
	'enableMonthSwitch': false,
	
});

Video of the problem:
https://recordit.co/M5mWjdt3jN

@michael-hack
Copy link
Owner

Thank you, should be fixed.

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