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

Disabled timePicker, if (minDate, MaxDate) + DefaultDate is set. #770

Open
valentinoGud opened this issue May 25, 2021 · 0 comments
Open

Comments

@valentinoGud
Copy link

valentinoGud commented May 25, 2021

Hey, i set minDate, maxDate. In this scenarioi can pick the time as usual.
But if i include defaultDate there, it not longer works.

My Code is simple.

datetimer.datetimepicker({ 
    minDate: '03.05.2021' ,
    maxDate : '23.05.2021',
    defaultDate : '03.05.2021', 
 });	
datetimer.datetimepicker( "show" );

Optional i also tryed this attributes below in `"Cartesian Product" with minDate, maxDate, defaultDate , no result.

formatDate:'d.m.Y',
defaultTime : '05:00',
datePicker : true, 
(defaultTime && initTime on false.
i also set minTime and maxTime or defaultTime

The funny thing is, if I remove defaultDate, it will work.
But i need it.


EXAMPLE


Pictures with defaultDate:

datetimer.datetimepicker({ 
	minDate: '03.05.2021' , 
	maxDate : '23.05.2021',
	defaultDate : '03.05.2021',
});	
datetimer.datetimepicker( "show" );

chrome_ZySVM6TAvq
chrome_QbveVKGS3S

Pictures without defaultDate:

datetimer.datetimepicker({ 
	minDate: '03.05.2021' ,
	maxDate : '23.05.2021',
 });	
datetimer.datetimepicker( "show" );

chrome_bh8s2wMEO5



This scenario also wont work if I use (minDate || maxDate ) with defaultDate

My mission:

If the user has selected a date e.g  in the year 2025 as starting date, he does not have to click 
forward all the months and years for the ending date, because with defaultDate
he will jump to 2025. So there must be minDate, because the "ending date" cant be smaller then "starting date"
That works, but the Time is disabled. ```
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