ui icon indicating copy to clipboard operation
ui copied to clipboard

Opened USelect triggers background elements on hover

Open smarroufin opened this issue 3 months ago • 1 comments

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

v4.0.1

Reproduction

https://codesandbox.io/p/devbox/serene-http-7p37qq?workspaceId=ws_5s171GS7Kawcz7J9iRt3Xa

Description

When opening a Select, I can hover and click elements that are in a ContextMenu.

In my example, you can open the Popover, which will place a panel with a Select on top of a ContextMenu area. Then open the Select and see how the ContextMenu child reacts to the cursor, but it shouldn't. Removing the ContextMenu in my example fixes the issue, the cursor no longer has effect on background elements while the Select is open.

Additional context

https://github.com/user-attachments/assets/e437c03e-7405-4a8a-9266-a8d083d6f97d

Logs


smarroufin avatar Oct 30 '25 12:10 smarroufin

After some digging, it might be an upstream issue. IMO it could be related to a Reka issue (https://github.com/unovue/reka-ui/issues/1923) which sets pointer-events: auto on its ContextMenu. Removing this prop from the ContextMenu in my DOM fixes my issue.

smarroufin avatar Oct 31 '25 11:10 smarroufin