Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Able to navigate through keyboard on disable dates #723

Open
vaidehihirani opened this issue May 10, 2018 · 0 comments
Open

Able to navigate through keyboard on disable dates #723

vaidehihirani opened this issue May 10, 2018 · 0 comments

Comments

@vaidehihirani
Copy link

Please consider a scenario that we have set startDate and endDate using setStartDate and setEndDate function. After that we have disabled some dates using setDatesDisabled function. Now, user can not navigate through keyboard on the dates which are out of range but can able to navigate and select disabled date which should be prevented.

$("#calendarInput").datetimepicker({format: "m/d/yyyy"}); $("#calendarInput").datetimepicker("setStartDate", "5/10/2018"); $("#calendarInput").datetimepicker("setEndDate", "5/25/2018"); $("#calendarInput").datetimepicker("setDatesDisabled", ["5/11/2018", "5/13/2018"]);

For above code, user should not be able to select 5/11/2018 through keyboard navigation as it is disabled.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant