primevue
primevue copied to clipboard
ContextMenu: The item action is not executed on Enter key when the "item" template has been redefined
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
- Right click on the yellow box.
- Press the "arrow down" key to focus "Copy" or "Rename" item.
- Press the "Enter" key.
- 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.