ui-bootstrap4
ui-bootstrap4 copied to clipboard
Datepicker popup does not focus back to input on date selection
Basically, if you select any date from the calendar, the focus leaves the input. This is very painful if you're in the middle of a form and are trying to tab through it. Focus starts at the beginning of the document. The "today", "clear", and "done" buttons all reset the focus to the input properly.
Here's the issue and fix for the original ui-bootstrap: https://github.com/angular-ui/bootstrap/issues/4243
That fix is already in this fork, since I forked well after that:
https://github.com/Morgul/ui-bootstrap4/blob/master/src/datepicker/datepicker.js#L328-L331
There's gotta be something else breaking this now. Can you put together an example?