You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a slightly modified version to detect when the Chosen dropdown has closed (chosen:hiding_dropdown event).
When I select an option from the dropdown, Chosen fires two events, "chosen:hiding_dropdown" and "change." However, in React, only one event shows up.
I just checked it and I think it's because you did a setState after the events fired. If you remove the setState, it works fine.
Messing with the combination of jquery events, chosen's hacky dom manipulations and react's setState is not fun at all.
I wish we have an acceptable react-only chosen substitute now. Oh well.
I am using a slightly modified version to detect when the Chosen dropdown has closed (chosen:hiding_dropdown event).
When I select an option from the dropdown, Chosen fires two events, "chosen:hiding_dropdown" and "change." However, in React, only one event shows up.
You can see the reproduction here http://jsfiddle.net/jeffchan/vySpj/
Steps to reproduce:
Expected:
show dropdown
hide dropdown
handle change
Actual:
show dropdown
hide dropdown
original: https://groups.google.com/d/msgid/reactjs/cd78a2fb-2c6d-406c-b0b4-1ec8ce869308%40googlegroups.com?utm_medium=email&utm_source=footer
The text was updated successfully, but these errors were encountered: