-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Render to "other" container & use Tether to position overlays #697
Comments
I doubt that tether will work with this, but just to note if you want to make this type of rendering work universally (isomorphically) you can use https://github.com/cloudflare/react-gateway |
Yes, you need to render element via "portals" to target container. Then, with Tether positions those elements next to their targets on scrolling, window resize, ... |
A more extensible option here would be to add a prop like |
Oh yes, this is an excellent option too! |
#529 would allow this, though I am not sure it is the best approach, as I've mentioned on the PR. |
Version 1 of react-select is no longer supported. In the best interest of the community we've decided to spend the time we have available on the latest version. We apologise for any inconvenience. Please see: |
I am not using screenshot of react-select in action, but they do apply to react-select as well
In some scenarios you have to use
overflow: hidden
. This causes undesired side effects such as cropping list of options. See this picture...This can be solved by attaching select's overlay to outer element,
document.body
preferably.Tether does this job very well. Bootstrap 4 is moving to Tether as well.
https://github.com/HubSpot/tether
Would you consider use of Tether to display overlays?
Edit
It's was not clearly stated. Tether does not render elements to "other" tree. It just positions those elements to their targets. Rendering should happen via "portals".
The text was updated successfully, but these errors were encountered: