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

on close callback #507

Closed
eromanowski opened this issue Dec 12, 2014 · 4 comments
Closed

on close callback #507

eromanowski opened this issue Dec 12, 2014 · 4 comments

Comments

@eromanowski
Copy link

I need a way to wire up to the on close event. Once the ui-select closes I need to set focus on a text input. I'm not seeing any event in the documentation to wire up to. What would be the best way to do this?

I noticed there is a $select.open boolean flag in select.js, could I put a watch on this boolean flag to determine if the ui-select dropdown has been closed?

I tried setting focus in the on-select callback, but there seems to be other things still happening that causes my text input to lose focus.

@jossemarGT
Copy link

You can try this #432 (comment)

@Zax
Copy link

Zax commented Sep 14, 2015

+1

@JoyousTanvi
Copy link

+1

@user378230
Copy link
Contributor

You should now be able to use the uisOpenCloseCallback to watch for the close event.

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

6 participants