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

ContextMenu: The item action is not executed on Enter key when the "item" template has been redefined #5983

Closed
clemvnt opened this issue Jun 27, 2024 · 0 comments · Fixed by #5944
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@clemvnt
Copy link
Contributor

clemvnt commented Jun 27, 2024

Describe the bug

Hello,

I'm using the ContextMenu component, where I've redefined the "item" template.

When I click on an item, the action is executed. However, when I press the Enter key, this is not the case.

There's no such problem with the "TieredMenu" component.

Reproducer

https://stackblitz.com/edit/ntwibf-m51q5j

PrimeVue version

3.53.0

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Right click on the yellow box.
  2. Press the "arrow down" key to focus "Copy" or "Rename" item.
  3. Press the "Enter" key.
  4. The action is not executed.

Do the same with the TieredMenu composant toggled by the button : It works.

Expected behavior

The action must be executed.

@clemvnt clemvnt added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 27, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 1, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.0.4 milestone Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
2 participants