Skip to content

onChange is not working #124

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

Closed
stonexer opened this issue Sep 20, 2018 · 2 comments
Closed

onChange is not working #124

stonexer opened this issue Sep 20, 2018 · 2 comments

Comments

@stonexer
Copy link

value in onChange event isn't updated

@AlexKart86
Copy link

AlexKart86 commented Sep 20, 2018

This bug is reproduced on demo
http://react-component.github.io/tree-select/examples/dynamic.html
Select one value and after that try to select another value

at triggerChange method
valueList array at this case includes 2 items - old and new node. OnChange event will receive the first value from this array - old node

The problem only appeared in the version 2.2.5, in 2.2.4 all is ok

@AlexKart86
Copy link

Seems to be fixed in 2.2.6

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

2 participants