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

remember disabled value of element before startLoading #117

Merged
merged 2 commits into from Feb 27, 2016

Conversation

Odi55555
Copy link
Contributor

This should fix #85.
ngDisabled was called before startLoading and stopLoading is executed. But stopLoading always sets the disabled attribute to false, no mather to what value the disabled attribute was set by ngDisabled. That's why I save the disabled value to the directives scope before startLoading sets disabled=true and reset the disabled value to the saved on on stopLoading.

This should fix leocaseiro#85.
ngDisabled was called before startLoading and stopLoading is executed. But stopLoading always sets the disabled attribute to false, no mather to what value the disabled attribute was set by ngDisabled. That's why I save the disabled value to the directives scope before startLoading sets disabled=true and reset the disabled value to the saved on on stopLoading.
@leocaseiro
Copy link
Owner

Hi @Odi55555 this is very promising and I'm happy to accept your PR. Could you just compile the chosen.js please?

Thanks

@Odi55555
Copy link
Contributor Author

Hi,
I compiled and pushed it.

@leocaseiro
Copy link
Owner

Thanks, Will launch in next release. Fix #111 #131 #136 #139

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

Successfully merging this pull request may close these issues.

Select cannot be disabled by default
2 participants