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

When first option is disabled it does not appear when the pulldown is first opened

Open boriswexler opened this issue 10 years ago • 8 comments

If the first option is disabled, the pulldown will start scrolled down at the second option - meaning the user will not see the first (disabled option) unless they think of scrolling up.

boriswexler avatar Oct 10 '16 23:10 boriswexler

https://github.com/JedWatson/react-select/blob/master/src/Select.js#L212

Is where the issue is, The offset doesn't take into account disabled options.

enf0rc3 avatar Jan 16 '17 20:01 enf0rc3

awesome thanks! Would you create a PR with your change and list it here? Thanks again!

boriswexler avatar Jan 19 '17 03:01 boriswexler

+1

jooseptame avatar Feb 01 '17 14:02 jooseptame

Is there a current workaround ? I'm experiencing this right now :confused:

florentdestremau avatar Feb 08 '17 10:02 florentdestremau

+1

brentoneill avatar May 05 '17 15:05 brentoneill

@enf0rc3 - tried applying that commit to my local react-select and it broke the component. Are there additional commits or a branch I can look at?

brentoneill avatar May 05 '17 16:05 brentoneill

This should be fixed by https://github.com/JedWatson/react-select/pull/2170 (merged to master, not yet published).

mtlewis avatar Nov 27 '17 10:11 mtlewis

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues / pull requests.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.

If you feel this issue / pull request 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 27 '20 06:05 bladey