Popover being covered by other components.
I have a component that contains a popover and I am using a v-for loop on the component. When the components are listed out, the ones below the component you click on cover the popover. Here is the component code.
Then the component is used like this
5 Replies
Hi @BeanFeed. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
The issue you're experiencing with the popover being covered by other components is related to the z-index stacking context. To resolve this, you can use the
popper
prop of the UPopover
component to adjust its z-index. Here's how you can modify your code to fix this issue:
By setting the strategy
to 'fixed' and specifying a high zIndex
value, you ensure that the popover appears above other components.
This solution is based on the information provided in the Popover documentation. The popper
prop allows you to customize the popper instance, including its positioning strategy and z-index.
If this doesn't fully resolve your issue, you might also want to consider wrapping your entire component in a UContainer
or adjusting the z-index of the parent elements to ensure proper stacking context.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@396917056718766080> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Here is a ss
This is what happens when I set the popover to overlay
This issue is resolved. It was caused by the tailwind drop shadow. If anyone is able to explain why that is then please let me know.