Just use popover inside the element, that has container-type: inline-size; defined for container queries.
I'm using the official Tailwind plugin for that: https://github.com/tailwindlabs/tailwindcss-container-queries, with the @container class.
Description
I've stumbled upon strange Popover panel placement when working on my app.
Everywhere popover was working OK, but in one of the components, the panel was waaaay off from the proper position.
Upon investigation I've discovered that the issue is caused by a @container class on the root component element, that contains the UPopover.
It look like that:
Once the @container class is removed, popover panel is back when it belongs:
Environment
Build Modules: -
Version
2.8
Reproduction
Just use popover inside the element, that has
container-type: inline-size;
defined for container queries. I'm using the official Tailwind plugin for that: https://github.com/tailwindlabs/tailwindcss-container-queries, with the@container
class.Description
I've stumbled upon strange Popover panel placement when working on my app. Everywhere popover was working OK, but in one of the components, the panel was waaaay off from the proper position.
Upon investigation I've discovered that the issue is caused by a @container class on the root component element, that contains the UPopover.
It look like that:
Once the
@container
class is removed, popover panel is back when it belongs:Additional context
No response
Logs
No response