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

Multi-select: placeholder moves up after clearing all values

Open sunny-g opened this issue 10 years ago • 11 comments

Before (on initial render): screen shot 2016-10-22 at 12 47 08 pm

After selecting multiple values (enough to increase the height of the multi-select), then losing focus on the select, and then clearing all of them, the placeholder jumps up a few pixels, as such:

screen shot 2016-10-22 at 12 46 59 pm

sunny-g avatar Oct 22 '16 18:10 sunny-g

Please correct if wrong, but this seems like a browser issue to me. I was only able to replicate in Chrome

frescoraja avatar Oct 25 '16 15:10 frescoraja

@frescoraja I've only been testing in Chrome, so that could very well be the issue.

sunny-g avatar Oct 29 '16 00:10 sunny-g

I'm seeing the same thing but to a worse degree. Using rc2 and yes can only reproduce in Chrome.

I don't think that means it's "just" a browser issue though. Remember all of the weird hacks we used to do to get IE to work correctly? Just because it only happens in Chrome does not invalidate the issue as most of us use Chrome (please tell me Chrome isn't the new IE).

akrikos avatar Nov 10 '16 21:11 akrikos

Using rc3, same problem, in Chrome only also.

gablabelle avatar Mar 30 '17 18:03 gablabelle

Using rc5 and still seeing this issue, it's a bit of a showstopper for us as it looks pretty bad in Chrome.

rich-poole avatar Aug 15 '17 21:08 rich-poole

No solution yet? Just ran into this issue, and it's almost not worth using. :( Still learning how to use react, otherwise I'd love to do a PR to fix. Sorry.

TallOrderDev avatar Sep 21 '17 02:09 TallOrderDev

i was able to fix this issue using flexbox instead of table display properties.. but if i remember correctly, when autosize=true, things to go #&$!. for my purposes, i didn't need autosize to work so never found a compete solution.

frescoraja avatar Sep 22 '17 19:09 frescoraja

I can't reproduce anymore. using chrome 60.0.3112.113 (Official Build) (64-bit)

frescoraja avatar Sep 22 '17 19:09 frescoraja

You can try to set the 'overflow' property of 'Select-control' class to 'inherit'. It works for me. multiselect

h23 avatar Jan 15 '19 09:01 h23

You can try to set the 'overflow' property of 'Select-control' class to 'inherit'. It works for me. multiselect

Thanks for your suggestion. I tried & it works, but cannot understand why. I think it's the only workaround for now

geraintdong avatar Nov 01 '19 10:11 geraintdong

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