Replies: 2 comments
-
here is the codesandbox |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also backdrop from tailwind isn'tworking inside the navbar component edit: I also noticed inset-0 isn't working properly either(inside the navbar) |
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
-
When I was using
Autocomplete
, I wanted the user to be able to focus on the entire component when the dropdown menu opened, so I used thebackdrop
attribute inpopoverProps
. However, that's where the problem arose.Simply adding
backdrop: "opaque"
won't work unless you also setisNonModal
tofalse
. Because there isisNonModal = true
in use-popover.ts and it controls whether the backdrop content is rendered with thebackdrop
in free-solo-popover.tsxHowever, I can't see the backdrop content even if the two property values are set correctly. Because the backdrop content should be placed inside the outermost
div
of the popover, rather than becoming a sibling of this DOM element and being appended directly under the body.which results in
Additionally, even if the backdrop is positioned correctly, the component will look like this
instead of
From my side, I prefer the latter one.
Could someone take a look? If this happens to align with what your team wants, I can submit a pr.
Beta Was this translation helpful? Give feedback.
All reactions