From 2aa1fa89c6418cb9cc6cd95bdb50a4784726fb75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Mon, 9 Jan 2023 21:36:40 +0300 Subject: [PATCH] Fixed for changeActiveItem --- components/panelmenu/PanelMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/panelmenu/PanelMenu.vue b/components/panelmenu/PanelMenu.vue index 069512685..7aaf7a25b 100644 --- a/components/panelmenu/PanelMenu.vue +++ b/components/panelmenu/PanelMenu.vue @@ -204,7 +204,7 @@ export default { const active = this.isItemActive(item); const eventName = !active ? 'panel-open' : 'panel-close'; - this.activeItem = selfActive ? item : this.activeItem && this.activeItem === item ? null : item; + this.activeItem = selfActive ? item : this.activeItem && ObjectUtils.equals(item, this.activeItem) ? null : item; this.changeExpandedKeys({ item, expanded: !active }); this.$emit(eventName, { originalEvent: event, item }); }