Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p-tab can not be activated with enter/space #17776

Open
1 of 4 tasks
Retch opened this issue Feb 27, 2025 · 1 comment
Open
1 of 4 tasks

p-tab can not be activated with enter/space #17776

Retch opened this issue Feb 27, 2025 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@Retch
Copy link

Retch commented Feb 27, 2025

Describe the bug

It is not possible to activate a element in with pressing down the enter or space key. It is only possible by mouseclick. Angulars RouterLink directive lacks support for enter and space key.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://primeng.org/tabs#tabmenu

Environment

set up with routerlinks.

Angular version

19.1.7

PrimeNG version

v19

Node version

22.13.0

Browser(s)

Chrome 131

Steps to reproduce the behavior

Go to Tab Menu Demo and use the code in your project. Try to activate a header with pressing enter or space key. RouterLink won't work.

Expected behavior

It is expected to be able to activate a header element by pressing enter or space key.
Image

@Retch Retch added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 27, 2025
@majkers
Copy link
Contributor

majkers commented Feb 27, 2025

@Retch I mentioned how I managed to solve it in #17563 (comment)
I am not 100% sure if its a bug. I can provide a PR if someone decides that it should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants