-
Notifications
You must be signed in to change notification settings - Fork 32
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
[QUESTION] zIndex when using menuPortalTarget #55
Comments
Ah yes, I figured this would come up eventually. The In the meantime, as a workaround you do have the option to use the I'll try and get a better solution to this out early next week. |
So I spent a good while looking at the source code for the original Because of that, the best I could do for now is re-enable the forwarding of the While this solution is probably better than being forced to use CSS, I would like to find a better alternative at some point, so I am going to leave this issue open until I do. And if anyone else has any thoughts on the issue, definitely leave a comment! |
Hi @csandman, Possibly this can be the problem with the zindex. Can you show any example how I can manipulate this? |
Have you tried doing exactly what the original poster of this issue did? That should solve your issue: <Select
menuPortalTarget={document.body}
styles={{ menuPortal: (provided) => ({ ...provided, zIndex: 100 }) }}
/> The |
Hey,
is there a way to change the zIndex when using a portal to move the dropdown to
document.body
?In react-select there's the styles property where you can customize CSS of the portal, like this:
Unfortunately, the menuPortal property doesn't seem to exist in chakra-react-select in
chakraStyles
. Is there any way to change the zIndex on the portal?The text was updated successfully, but these errors were encountered: