Refactor #5592 - Breadcrumb, ContextMenu, Dock

This commit is contained in:
tugcekucukoglu 2024-04-30 14:51:44 +03:00
parent 28d77998c0
commit f71512afdb
11 changed files with 87 additions and 87 deletions

View file

@ -5,7 +5,7 @@
<ContextMenuSub
:ref="listRef"
:id="id + '_list'"
:class="cx('menu')"
:class="cx('rootList')"
role="menubar"
:root="true"
:tabindex="tabindex"
@ -319,7 +319,7 @@ export default {
onEnterKey(event) {
if (this.focusedItemInfo.index !== -1) {
const element = DomHandler.findSingle(this.list, `li[id="${`${this.focusedItemIdx}`}"]`);
const anchorElement = element && DomHandler.findSingle(element, 'a[data-pc-section="action"]');
const anchorElement = element && DomHandler.findSingle(element, 'a[data-pc-section="itemlink"]');
anchorElement ? anchorElement.click() : element && element.click();
const processedItem = this.visibleItems[this.focusedItemInfo.index];