-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Describe the bug
My React application creates a new window and then uses React createPortal to render into it. Whenever I try to render any shadcn component that pops up a dropdown menu (Select, Dropdown, Menu, etc.) and I activate the dropdown, it will appear in the main window instead of the new window.

Affected component/components
Dropdown, Select, Menu, any that has a dropdown
How to reproduce
- Create a component that creates a window
- Create an instance of
Selector any other component that creates a dropdown - Render the
Selectinto the window with createPortal
I've created an example project demonstrating the behavior in my Github.
Codesandbox/StackBlitz link
https://github.com/urbenlegend/dropdown_test
Logs
No relevant logsSystem Info
Happens with both the latest versions of Firefox and ChromeBefore submitting
- I've made research efforts and searched the documentation
- I've searched for existing issues