eureka2 / ab-datepicker

An accessible and bootstrap compatible datepicker
MIT License
63 stars 55 forks source link

Non standard focus after date select #57

Open matoaaa opened 4 years ago

matoaaa commented 4 years ago

Standard: https://w3c.github.io/aria-practices/examples/dialog-modal/datepicker-dialog.html

Behaviour of the w3c datepicker: After selecting the date with either mouse or keyboard the datepicker pop up is closed and focus is set on the button.

Behaviour of the ab-datepicker: After selecting the date with either mouse or keyboard the datepicker pop up is closed and focus is set on the input field.

I suggest to change it and set the focus on the button.