DeepEquals changed to equals
parent
9eee09834e
commit
3f8ddd8e58
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue