ab-datepicker icon indicating copy to clipboard operation
ab-datepicker copied to clipboard

Open calendar on fous in datepicker textbox

Open rakeshy3 opened this issue 5 years ago • 2 comments

My requirement is to open calendar on focus event inside textbox instead of using calendar icon. Please suggest how can I achieve this. Because when i calling onfocus it is opening infinite time

rakeshy3 avatar Apr 29 '19 05:04 rakeshy3

@eureka2 Could you please suggest the solution for the above query? I have the same query as above, what I need to do if I want to open the datepicker on focus via mouse click or keyboard? Thanks in advance

Umair45 avatar Oct 09 '19 10:10 Umair45

For accessibility reasons, you can’t do that. Why? Because when the calendar is open, the focus must be placed on it so that the blind user can choose a date with the keyboard keys. But if the focus is on the calendar, it is no longer possible to enter the date directly in the text field, which is contrary to the accessibility principles which is the main objective of this component. The blind user MUST be able to choose how to enter the date.

eureka2 avatar Oct 10 '19 08:10 eureka2