From 3f8ddd8e58f69dea49dd440d0e410292f860a6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Mon, 9 Jan 2023 21:31:18 +0300 Subject: [PATCH] DeepEquals changed to equals --- components/panelmenu/PanelMenu.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';