Is there any way to handle focus event, may be with ng-focus?
I'd like to execute function when ui-select is focused. ng-focus seems doesn't work. Is there any workaround?
+1
http://plnkr.co/edit/AKbBkaB9j2th5epopGKF?p=preview
+1
+1
Using ng-click instead of ng-focus, I have solved this issue.
Here is the plucker link: http://plnkr.co/edit/VDZ41AIcd5cYwdA9fFPu?p=preview
ng-click doesn't solve the issue as the event is not triggered if I tab into the select.
Yes, it will not work with the tab.
http://plnkr.co/edit/mysfJSlwETooBPP35zzz?p=preview I have tried to some extent using ng-keypress directive, but was not completely successful. For my present changes, one needs to do tab+enter+tab+enter, then, it will show the drop-down with correct values.
I had to create a custom directive to do some focus management for work - PRs are welcome for this.
For me it worked fine using the uis-open-close directive .
I used it to display status messages while performing remote filtering but only when select has focus.