USelect fails to close on click when it (or one of its parents) has pointer-events classes applied
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.1k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 57
Description
Environment
Operating system: Windows 10.0.26200
Node.js version: v26.5.0
Nuxt version: 4.4.8
Nuxt/ui version: ^4.10.0
Is this bug related to Nuxt or Vue?
Nuxt
Package
v4.x
Version
v4.10.0
Reproduction
Description
I noticed that if USelect or one of its parent elements has the pointer-events-auto class applied, USelect sometimes fails to close when clicked.
To reproduce, click each USelect component ~ 10 times in the provided URL. The first USelect closes correctly every time. The other two USelect components close inconsistently — sometimes they close, and sometimes they appear to reopen immediately after closing, which is not the expected behavior.
Additional context
I have a map application with a div overlay that has pointer-events-none applied. Inside this overlay, I have a USelect component with pointer-events-auto. This is a common use case, but USelect behaves unreliably in this scenario.
Logs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reproduction and inspect USelect's open/close behavior when the component or a parent has pointer-events-auto or pointer-events-none. Reproduce repeated clicks on all three selects and trace the interaction that causes a close to be followed by an immediate reopen. Done means each select closes reliably in the pointer-events scenario described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, tailwindcss, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100