diff --git a/components/panelmenu/PanelMenu.vue b/components/panelmenu/PanelMenu.vue index 5b0849904..a0d7c7af7 100755 --- a/components/panelmenu/PanelMenu.vue +++ b/components/panelmenu/PanelMenu.vue @@ -83,7 +83,7 @@ export default { return this.getItemProp(item, 'label'); }, isItemActive(item) { - return this.expandedKeys ? this.expandedKeys[this.getItemProp(item, 'key')] : ObjectUtils.deepEquals(item, this.activeItem); + return this.expandedKeys ? this.expandedKeys[this.getItemProp(item, 'key')] : ObjectUtils.equals(item, this.activeItem); }, isItemVisible(item) { return this.getItemProp(item, 'visible') !== false; @@ -201,7 +201,7 @@ export default { }, changeActiveItem(event, item, selfActive = false) { if (!this.isItemDisabled(item)) { - this.activeItem = selfActive ? item : this.activeItem && ObjectUtils.deepEquals(item, this.activeItem) ? null : 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';