Replies: 3 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
-
|
This helped me get the backdrop working, but then I couldn't close it, setting More at: #1987 (comment) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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 thebackdropattribute inpopoverProps. However, that's where the problem arose.Simply adding
backdrop: "opaque"won't work unless you also setisNonModaltofalse. Because there isisNonModal = truein use-popover.ts and it controls whether the backdrop content is rendered with thebackdropin 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


divof 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