mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Merge pull request #5944 from clemvnt/patch-1
fix(ContextMenu): adjust anchor element selector to execute action on Enter key when the "item" template has been redefined
This commit is contained in:
commit
706e623506
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ export default {
|
|||
onEnterKey(event) {
|
||||
if (this.focusedItemInfo.index !== -1) {
|
||||
const element = findSingle(this.list, `li[id="${`${this.focusedItemIdx}`}"]`);
|
||||
const anchorElement = element && findSingle(element, 'a[data-pc-section="itemlink"]');
|
||||
const anchorElement = element && findSingle(element, '[data-pc-section="itemlink"]');
|
||||
|
||||
anchorElement ? anchorElement.click() : element && element.click();
|
||||
const processedItem = this.visibleItems[this.focusedItemInfo.index];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue