Merge branch 'master' into issue-3166

This commit is contained in:
Bahadır 2023-01-09 21:32:42 +03:00 committed by GitHub
commit 13b9fd9537
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
45 changed files with 874 additions and 306 deletions

5
components/panelmenu/PanelMenu.vue Executable file → Normal file
View file

@ -201,11 +201,10 @@ export default {
},
changeActiveItem(event, item, selfActive = false) {
if (!this.isItemDisabled(item)) {
this.activeItem = selfActive ? item : this.activeItem && ObjectUtils.equals(item, this.activeItem) ? null : item;
const active = this.isItemActive(item);
const eventName = active ? 'panel-open' : 'panel-close';
const eventName = !active ? 'panel-open' : 'panel-close';
this.activeItem = selfActive ? item : this.activeItem && this.activeItem === item ? null : item;
this.changeExpandedKeys({ item, expanded: !active });
this.$emit(eventName, { originalEvent: event, item });
}