primevue icon indicating copy to clipboard operation
primevue copied to clipboard

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

Open clemvnt opened this issue 1 year ago • 0 comments

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 avatar Jun 27 '24 15:06 clemvnt