react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Scroll on popup

Open dana2208 opened this issue 7 years ago • 4 comments

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

dana2208 avatar Feb 14 '19 12:02 dana2208

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?

c-moss-talk avatar Mar 07 '19 04:03 c-moss-talk

When you have select in popup or modal please use closeMenuOnScroll={(e: Event) => e}

dariuszkrolkurtosys avatar May 22 '19 09:05 dariuszkrolkurtosys

if you have scroll into dropdown use this : closeMenuOnScroll={(e: any) => e.target && !(e.target.classList.contains("select__menu-list"))}

dariuszkrolkurtosys avatar May 22 '19 11:05 dariuszkrolkurtosys

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!

bladey avatar May 28 '20 06:05 bladey