diff --git a/lib/ng2-select2.component.ts b/lib/ng2-select2.component.ts index 959a334..bb0b2a7 100644 --- a/lib/ng2-select2.component.ts +++ b/lib/ng2-select2.component.ts @@ -139,14 +139,14 @@ export class Select2Component implements AfterViewInit, OnChanges, OnDestroy, On let oldMatcher: any = await this.requireOldMatcher(); options.matcher = oldMatcher(options.matcher); this.element.select2(options); - - if (typeof this.value !== 'undefined') { - this.setElementValue(this.value); - } } else { this.element.select2(options); } + if (typeof this.value !== 'undefined') { + this.setElementValue(this.value); + } + if(this.disabled) { this.renderer.setElementProperty(this.selector.nativeElement, 'disabled', this.disabled); }