DeepEquals changed to equals

pull/3463/head
Bahadır Sofuoğlu 2023-01-09 21:31:18 +03:00
parent 9eee09834e
commit 3f8ddd8e58
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ export default {
return this.getItemProp(item, 'label'); return this.getItemProp(item, 'label');
}, },
isItemActive(item) { 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) { isItemVisible(item) {
return this.getItemProp(item, 'visible') !== false; return this.getItemProp(item, 'visible') !== false;
@ -201,7 +201,7 @@ export default {
}, },
changeActiveItem(event, item, selfActive = false) { changeActiveItem(event, item, selfActive = false) {
if (!this.isItemDisabled(item)) { 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 active = this.isItemActive(item);
const eventName = active ? 'panel-open' : 'panel-close'; const eventName = active ? 'panel-open' : 'panel-close';