Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird issue + Solution to fix (codesandbox inside) #4014

Closed
aurelienbobenrieth opened this issue Apr 16, 2020 · 1 comment · Fixed by #4625
Closed

Weird issue + Solution to fix (codesandbox inside) #4014

aurelienbobenrieth opened this issue Apr 16, 2020 · 1 comment · Fixed by #4625
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet issue/reviewed Issue has recently been reviewed (mid-2020)

Comments

@aurelienbobenrieth
Copy link

aurelienbobenrieth commented Apr 16, 2020

I came up with a weird issue when using react-select.

It seems that if you add a forced static positioning on div inside the select input component, the AutoResizeInput will re-render infinitly, causing react to crash.

e.g. https://codesandbox.io/s/react-codesandboxer-example-ftcov?file=/example.js

EDIT : Better try in firefox rather than chrome as chrome some times manages to make it work.

I don't know if this is something you can fix, but at least you should add this as a no-op in the doc I guess.

@bladey bladey added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label May 29, 2020
@bladey bladey added the issue/reviewed Issue has recently been reviewed (mid-2020) label Jun 19, 2020
@ebonow ebonow linked a pull request Oct 17, 2021 that will close this issue
@ebonow
Copy link
Collaborator

ebonow commented Oct 17, 2021

Thank you for reporting this.

Was broken thru version 4, but has been resolved in react-select version 5 due to the AutoResizeInput component being replaced with a pure css solution instead.

https://codesandbox.io/s/react-codesandboxer-example-forked-t7gds?file=/example.js

@ebonow ebonow closed this as completed Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet issue/reviewed Issue has recently been reviewed (mid-2020)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants