Affects Version/s: master, master-deprecated
There are two issues detected on Datepicker related to focus:
: When clicking twice in an input date, focus is moved from input to calendar in the second click.
Steps to reproduce:
1.- Click on input date -> See how focus is set on input date and calendar popover is shown.
2.- Click again on same input date
Focus keeps on input date
Focus is moved to calendar popover
: After deleting the value of an input date, focus is not moved to other input date after the first click. We need two clicks. Here, also related to
AUI-1353, the piece of code is provoking this behaviour is here because when delete the value we call the function _afterDatePickerSelectionChange that set the focus in the current node.
Steps to reproduce
1.- Add to input dates to your page.
2.- Add a date to each one.
3.- Delete the date from the first one.
4.- Click on the second one.
Focus is moved to second input date since is where we just clicked.
Focus remains in first input date.