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

onFocus and onOpen are both called on menu close

Open Frezzaldo opened this issue 9 years ago • 3 comments

I want to run some code when the menu open and not on close. I have tried to use onFocus and onOpen but they are both also called when the menu close.

Frezzaldo avatar Nov 17 '17 15:11 Frezzaldo

https://plnkr.co/edit/h8u0Q8v0I9sAW5L7Coud?p=preview

This simple example logs when onOpen or onFocus are called in the console. I try opening and closing the menu and I (correctly) only get logs when it opens. Can you provide a test case where the behavior breaks?

karaggeorge avatar Nov 20 '17 02:11 karaggeorge

Hi, use the onMenuOpen and onMenuClose events react-select

cicco94 avatar Jan 30 '20 16:01 cicco94

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 05:05 bladey