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

Combobox input width not updating until key-up even in IE 11

Open ssshake opened this issue 10 years ago • 5 comments

I have no idea why but it appears that in IE11 the combobox is resizing only on key up events, which causes this jank in this gif.

fnuwlbskrx

In all other browsers it seems certain that it resizes on keydown even. I have no idea why.

ssshake avatar Oct 25 '16 18:10 ssshake

@ssshake: I have been able to get rid of this IE11 quirk by setting following styles:

.Select-input { width: 100%; } .Select-input > input { min-width: 100%; }

If you do not want to have it through the whole line then just wrap it in a container with specific width. We use Bootstrap so we just put it in the DIV with certain Bootstrap class like col-lg-4.

mauretanec avatar Dec 09 '16 12:12 mauretanec

@mauretanec Thanks for that answer! Was running into this today and wasn't looking forward to the CSS troubleshooting.

humphries40 avatar May 10 '17 15:05 humphries40

thanks

ssshake avatar Oct 19 '17 14:10 ssshake

@mauretanec Thanks for your fix. As of now, there is another DIV wrapped around .Select-input. To make things work, I had to add an additional style: .Select-value-container > :last-child { width: 100% }

mahlero avatar Feb 13 '19 11:02 mahlero

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