mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Mobile megaMenu & Menubar
This commit is contained in:
parent
c493f0d22a
commit
0304b36348
3 changed files with 4 additions and 11 deletions
|
@ -27,7 +27,7 @@
|
|||
</slot>
|
||||
<MenubarSub
|
||||
:ref="menubarRef"
|
||||
:id="id"
|
||||
:id="id + '_list'"
|
||||
role="menubar"
|
||||
:items="processedItems"
|
||||
:templates="$slots"
|
||||
|
@ -173,10 +173,7 @@ export default {
|
|||
},
|
||||
onFocus(event) {
|
||||
this.focused = true;
|
||||
|
||||
if (!this.popup) {
|
||||
this.focusedItemInfo = this.focusedItemInfo.index !== -1 ? this.focusedItemInfo : { index: this.findFirstFocusedItemIndex(), level: 0, parentKey: '' };
|
||||
}
|
||||
this.focusedItemInfo = this.focusedItemInfo.index !== -1 ? this.focusedItemInfo : { index: this.findFirstFocusedItemIndex(), level: 0, parentKey: '' };
|
||||
|
||||
this.$emit('focus', event);
|
||||
},
|
||||
|
@ -294,7 +291,7 @@ export default {
|
|||
}
|
||||
},
|
||||
onItemMouseEnter(event) {
|
||||
if (!this.mobileActive && this.dirty) {
|
||||
if (this.dirty) {
|
||||
this.onItemChange(event);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
</div>
|
||||
<MenubarSub
|
||||
v-if="isItemVisible(processedItem) && isItemGroup(processedItem)"
|
||||
:id="getItemId(processedItem) + '_list'"
|
||||
:menuId="menuId"
|
||||
role="menu"
|
||||
:style="sx('submenu', true, { processedItem })"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue