Skip to content

[QUESTION] zIndex when using menuPortalTarget #55

Open
@thvozdovic

Description

@thvozdovic

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:

<Select
  menuPortalTarget={document.body}
  styles={{ menuPortal: (provided) => ({ ...provided, zIndex: 100 }) }}
/>

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?

Metadata

Metadata

Assignees

Labels

Help WantedExtra attention is neededQuestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions