Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear selected item after form submission #39

Closed
fproldan opened this issue Feb 19, 2015 · 2 comments
Closed

Clear selected item after form submission #39

fproldan opened this issue Feb 19, 2015 · 2 comments

Comments

@fproldan
Copy link

Hi! How i can clear the selected item after form submission?, te value of the ng-model turn empty but the widget still show the previous selected item.

Sorry for my english

Thanks

@cypherix93
Copy link

+1

The ng-model value can be changed to null, but the dropdown stays the same. We need a way to deselect.

@jca258
Copy link
Contributor

jca258 commented Feb 28, 2015

Hi, I have a PR to solve that. I make the component get unselected when the component is undefined.
#42 you only have to get an option with the value set to "" or not defined to get the unselected status or if you want to get the unselected value from the controller, you can set the model to undefined.

Please review the PR to get feedback.

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

No branches or pull requests

3 participants