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

dropdown onChange callback fires before dd item changes #2539

Closed
avalanche1 opened this issue Jul 7, 2015 · 1 comment
Closed

dropdown onChange callback fires before dd item changes #2539

avalanche1 opened this issue Jul 7, 2015 · 1 comment
Milestone

Comments

@avalanche1
Copy link
Member

Docs say: on Change Is called after a dropdown value changes. Receives the name and value of selection and the active menu element
http://codepen.io/avalanche1/pen/GJyJZe
If you select any item, alert shows your previous dd value, while it should show newly selected value.
I understand that I can get text argument of onChange, but .dropdown('get text') sd work as well.

@jlukic
Copy link
Member

jlukic commented Jul 7, 2015

I think it makes sense to update text before.

jlukic added a commit that referenced this issue Jul 7, 2015
@jlukic jlukic closed this as completed Jul 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants