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

Past Dates can still be picked through time picker. #242

Open
TNChalise opened this issue Mar 25, 2019 · 0 comments
Open

Past Dates can still be picked through time picker. #242

TNChalise opened this issue Mar 25, 2019 · 0 comments

Comments

@TNChalise
Copy link

Steps to reproduce:

 var nowTemp = new Date();
 var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);

 $('.datetime-later').fdatepicker({
   onRender: function(date) {
     return date.valueOf() < now.valueOf() ? 'disabled' : '';
   },
   format: 'dd-mm-yyyy hh:ii',
   disableDblClickSelection: true,
   pickTime: true,
 });
  • Select Future Date
  • Select Time [Will be able to pick past times for today.]
  • Click on arrows to navigate past dates
  • And Confirm

We will be able to select past dates from date picker even if its disabled on render.

If there any way to address the problem with disabling past times as well ?

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