1

After user selects the date, I want to focus to stay on the calendar input field. Currently, the focus will stay if the user selects "Today" "Clear" or "Close" but not if they select a date.

I found a solution detailing passing in $event to the function on ng-click, and then using $event.preventDefault(); and $event.stopPropagation(); You can see the solution working here: Plunker Solution from Johnny Reilly's blog post

However, when applied to the current versions, it is not working. My attempt to apply the solution here: Angular UI Bootstrap Example

jenryb
  • 2,017
  • 12
  • 35
  • 72
  • http://stackoverflow.com/questions/14833326/how-to-set-focus-on-input-field – svarog Oct 10 '16 at 20:41
  • @svarog here is my attempt at that solution (not working): https://plnkr.co/edit/oXxBYBWBbs8zM6XYy0Ut?p=preview. I'd prefer to do it with less baggage. Preferably whatever the "Today" "Clear" and "Close" buttons are doing – jenryb Oct 10 '16 at 21:21

0 Answers0