Difference between poppers and portals on Menu #2426
Replies: 1 comment
-
FWIW they do use the portal part on the link you provided. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying some of Radix's components and reading their docs (particularly the DropdownMenu).
From what I can see from the docs of DropdownMenu from
Shadcn/UI
(a collection of components using Radix), they just omit the Portal and the dropdown works normally.I can't see any differences between using DropdownMenu.Portal and omitting it since both cases the Content part are both being put to document.body. So I'd be thankful if you guys can show me the differences.
Beta Was this translation helpful? Give feedback.
All reactions