ui-bootstrap4 icon indicating copy to clipboard operation
ui-bootstrap4 copied to clipboard

Datepicker popup does not focus back to input on date selection

Open rshakespear opened this issue 5 years ago • 1 comments

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

rshakespear avatar Feb 21 '19 22:02 rshakespear

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?

Morgul avatar Aug 09 '19 13:08 Morgul