-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 events triggering twice #504
Comments
I am unable to reproduce this. Can you report your OS, browser, and stardust versions? Mac OSX Yosemite 10.10.5 (14F1912) |
Windows 8.1 Im using react@15.3.1 if that matters. |
Thanks, I was able to reproduce this after creating a simplified example. See #508 for the fix. I'll release it as soon as tests pass. |
Fixed in |
I'm having an issue where I have a dropdown with an OnChange event that calls a function updateFilter that is being triggered twice. My function updateFilter gets called once when i click the dropdown and select an item in the list and another after clicking elsewhere on the browser that is not the dropdown.
I have the following set up.
const options = [ { text: 'item1', value: '1' }, { text: 'item2', value: '2' }, ]
updateFilter = (e, value) => console.log(e)
<Dropdown selection options={options} onChange={this.updateFilter} />
after clicking the dropdown and selecting a value i see the following in the console
"Proxy {dispatchConfig: Object, _targetInst: ReactDOMComponent, _dispatchListeners: Array[2], _dispatchInstances: Array[2], nativeEvent: MouseEvent"
after performing the above actions i click anywhere else on the browser that is not the dropdown and see the following in the console
"Proxy {dispatchConfig: Object, _targetInst: ReactDOMComponent, _dispatchInstances: ReactDOMComponent, nativeEvent: FocusEvent, type: "blur"...}"
Is this a bug or am i doing something wrong?
The text was updated successfully, but these errors were encountered: