Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Is there any way to handle focus event, may be with ng-focus? #344

Open
synergetic opened this issue Oct 25, 2014 · 8 comments
Open

Is there any way to handle focus event, may be with ng-focus? #344

synergetic opened this issue Oct 25, 2014 · 8 comments

Comments

@synergetic
Copy link

I'd like to execute function when ui-select is focused. ng-focus seems doesn't work.
Is there any workaround?

@wastedUltimate
Copy link

@dimirc dimirc added this to the 0.11.x milestone Mar 9, 2015
@noullet
Copy link

noullet commented Apr 2, 2015

+1

1 similar comment
@saigiridhar21
Copy link

+1

@saigiridhar21
Copy link

Using ng-click instead of ng-focus, I have solved this issue.

Here is the plucker link:
http://plnkr.co/edit/VDZ41AIcd5cYwdA9fFPu?p=preview

@jraguilo
Copy link

ng-click doesn't solve the issue as the event is not triggered if I tab into the select.

@saigiridhar21
Copy link

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.

@wesleycho wesleycho removed this from the 0.11.x milestone Mar 27, 2016
@wesleycho
Copy link
Contributor

I had to create a custom directive to do some focus management for work - PRs are welcome for this.

@luizgrs
Copy link

luizgrs commented Nov 18, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants