Replies: 2 comments
-
|
@neznayer Did you find a solution for this? I'm facing the same thing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Provided example uses React in a incorrect way. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
How could I show popover inside some element?
Use case:
I have a web app with left panel of fixed width, and right area. Inside the right area there are some Task elements. They are positioned absolutely relative to the right area. On click on the Task, I want a detail Popover to open, but I don't want it to hover over the left area. So effectively, I want the area over which the popover shows to be restricted to the right area.
I thought that wrapping the content in popover into the
<Popover.Portal container={document.querySelector(".right-area")}>would do the trick, but It's still rendered inside thebodyand not inside the element with.right-areaclass...reproduction is here
https://stackblitz.com/edit/vitejs-vite-lrbnmgxn?file=src%2FApp.tsx
Beta Was this translation helpful? Give feedback.
All reactions