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
Opening dropdown via dropdown icon hijacks events (react-datepicker example) #5050
Comments
I think the issue is that dropdown indicator has it's own method for click (onDropdownIndicatorMouseDown). It calls |
For information, the bug isn't reproductible in mobile view for some reason (used this https://stackblitz.com/edit/react-o6gkep?file=src/App.js while on mobile view and DatePicker does close correctly when select is clicked using the icon on right) |
@hushee69 possibly because touch events are used. |
Will be fixed in #5138 |
When using
react-select
withreact-datepicker
it seems that some architectural issue ofreact-select
shows up.Repro:
https://stackblitz.com/edit/react-o6gkep?file=src/App.js
Correct behaviour:
Issue:
I think there's a problem with how this div with icon is designed. Seems to me like it's highjacking events. That doesn't happen for other part of the select and IMO it shouldn't happen here as well.
It was reported here:
#1539
but closed without any resolution.
Versions:
The text was updated successfully, but these errors were encountered: