nuxt / nuxt/ui

PageCard body not hover-/clickable with prop `to`

Open
#5,526 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
TypeScript
Stars
6.9k
Forks
1.1k
Avg merge
1d 7h
Merged PRs (30d)
57

Description

Environment
  • Operating System: Linux
  • Node Version: v20.19.1
  • Nuxt Version: 4.2.1
  • CLI Version: 3.30.0
  • Nitro Version: 2.12.9
  • Package Manager: npm@10.8.2
  • Builder: -
  • User Config: devtools, modules, css, compatibilityDate
  • Runtime Modules: @nuxt/ui@4.2.1, @nuxt/eslint@1.10.0
  • Build Modules: -
Is this bug related to Nuxt or Vue?

Nuxt

Package

v4.x

Version

4.2.1

Reproduction

https://stackblitz.com/edit/github-tcyt5giw?file=app%2Fpages%2Findex.vue

  1. Hover first button -> bg-red
  2. hover secord button -> no bg-red
Description
Image

This span prevents any body mouse events

Additional context

No response

Logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproduction and inspect the PageCard component and its to prop. Reproduce the two hover cases, then trace why the body span prevents mouse events; done means the PageCard body responds to hover and click consistently when to is set.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.