mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Fixed #3553 - PanelMenu: Link items can't be opened with a keyboard (slot issue)
This commit is contained in:
parent
10bdf93f04
commit
86a34cde87
2 changed files with 10 additions and 7 deletions
|
@ -70,10 +70,18 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
id: this.$attrs.id,
|
||||
activeItem: null
|
||||
};
|
||||
},
|
||||
|
||||
watch: {
|
||||
'$attrs.id': function (newVal) {
|
||||
this.id = newVal || UniqueComponentId();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.id = this.id || UniqueComponentId();
|
||||
},
|
||||
methods: {
|
||||
getItemProp(item, name) {
|
||||
return item ? ObjectUtils.getItemValue(item[name]) : undefined;
|
||||
|
@ -250,11 +258,6 @@ export default {
|
|||
return ['p-submenu-icon', this.isItemActive(item) ? 'pi pi-chevron-down' : 'pi pi-chevron-right'];
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
id() {
|
||||
return this.$attrs.id || UniqueComponentId();
|
||||
}
|
||||
},
|
||||
components: {
|
||||
PanelMenuList: PanelMenuList
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue