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

Date jumps to next month after selecting new day more then once #244

Open
DaanBaars opened this issue Jan 19, 2019 · 0 comments
Open

Date jumps to next month after selecting new day more then once #244

DaanBaars opened this issue Jan 19, 2019 · 0 comments

Comments

@DaanBaars
Copy link

DaanBaars commented Jan 19, 2019

With beneath setup the first day is selected after and date pick is limited to 1 day only selecting other months and years is disabled, after selecting a new day twice the month jumps to the next month and you can't go back as month change is disabled.

`$(function() {
$( ".hredate" ).multiDatesPicker({
defaultDate: new Date(2019,01,01),
dateFormat: 'dd-mm-yy',
changeMonth: false,
changeYear: false,
stepMonths: false,
beforeShowDay: $.datepicker.noWeekends,

	maxPicks: 1,					
});

});`

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

1 participant