chenglou / chenglou/react-chosen
Events not firing if using `setState` on event
- Dominant language
- HTML
- Stars
- 95
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
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:
1. Select an option from the dropdown
2. Check the console output.
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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked JSFiddle reproduction and compare Chosen's chosen:hiding_dropdown and change events when React setState is used. Trace the React wrapper's event handling; done means the console reports show dropdown, hide dropdown, and handle change for one selection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100