Closed
Description
When using react-select
with react-datepicker
it seems that some architectural issue of react-select
shows up.
Repro:
https://stackblitz.com/edit/react-o6gkep?file=src/App.js
Correct behaviour:
- Open datepicker.
- Click on select (not the part with icon on right) and observe datepicker is closed correctly.
Issue:
- Open datepicker.
- Click on the part with icon on right of select and observe datepicker is not closed.
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:
"react": "17.0.2",
"react-datepicker": "4.6.0",
"react-dom": "17.0.2",
"react-select": "^5.2.2"