From 683ac0ba335538657da18a05bb626c0f74d61ae4 Mon Sep 17 00:00:00 2001 From: Greg Kass Date: Thu, 26 Oct 2017 10:54:30 -0400 Subject: [PATCH] fix settings variables --- src/dropdown/dropdown.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dropdown/dropdown.component.ts b/src/dropdown/dropdown.component.ts index 662d93f5..055936a5 100644 --- a/src/dropdown/dropdown.component.ts +++ b/src/dropdown/dropdown.component.ts @@ -200,10 +200,10 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, OnDestro .map(option => option.parentId); this.updateRenderItems(); - if (this.isLazyLoad && this.settings.selectAddedValues && this.loadedValueIds.length === 0) { + if (this.settings.isLazyLoad && this.settings.selectAddedValues && this.loadedValueIds.length === 0) { this.loadedValueIds = this.loadedValueIds.concat(changes.options.currentValue.map(value => value.id)); } - if (this.isLazyLoad && this.settings.selectAddedValues && changes.options.previousValue) { + if (this.settings.isLazyLoad && this.settings.selectAddedValues && changes.options.previousValue) { let addedValues = changes.options.currentValue.filter( value => this.loadedValueIds.indexOf(value.id) === -1 ); @@ -411,7 +411,7 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, OnDestro checkAll() { if (!this.disabledSelection) { this.addChecks(!this.searchFilterApplied() ? this.options : this.filteredOptions); - if (this.isLazyLoad && this.settings.selectAddedValues) { + if (this.settings.isLazyLoad && this.settings.selectAddedValues) { if (this.searchFilterApplied() && !this.checkAllStatus) { this.checkAllSearchRegister.add(this.filterControl.value); } else { @@ -441,7 +441,7 @@ export class MultiselectDropdown implements OnInit, OnChanges, DoCheck, OnDestro return false; } }); - if (this.isLazyLoad && this.settings.selectAddedValues) { + if (this.settings.isLazyLoad && this.settings.selectAddedValues) { if (this.searchFilterApplied()) { if (this.checkAllSearchRegister.has(this.filterControl.value)) { this.checkAllSearchRegister.delete(this.filterControl.value);