Scroll on popup
When react-select is opened in a popup, it closes when we scroll on the popup only if there is a scroll on the whole document body thanks to its property closeMenuOnScroll={true}. Is it possible to close the dropdown when we scroll on the popup without scrolling on the whole document body? Thanks
Hi @dana2208, you need to provide more information or an example. Also, this is a probably a question for stack overflow. Can you please close this issue?
When you have select in popup or modal please use closeMenuOnScroll={(e: Event) => e}
if you have scroll into dropdown use this :
closeMenuOnScroll={(e: any) => e.target && !(e.target.classList.contains("select__menu-list"))}
Hello -
In an effort to sustain the react-select project going forward, we're closing old issues.
We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version.
If you aren't using the latest version of react-select please consider upgrading to see if it resolves any issues you're having.
However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you!