Hi, anjmao
I face a problem about multi select disable, when the ngSelect inside FormGroup tag and modal, it wont disable the multi select. so how can fix it?
ng-select version: [0.2.5]
browser: [Google Chrome]
reproducable in demo page: [YES]
@mi1olson Thanks for reporting, I'm looking into it :)
@mi1olson It appears that then using reactive forms you should disable it using form control API and [disabled] attribute wont work, this is how angular reactive forms work. I added this sample to demo page also.
togglePhotoDisabled() {
const photo = this.heroForm.get('photo');
if (photo.disabled) {
photo.enable();
} else {
photo.disable();
}
}
Thank You very much Mr Anjmao. :)
its works for me
@anjmao thank you
Most helpful comment
@mi1olson It appears that then using reactive forms you should disable it using form control API and [disabled] attribute wont work, this is how angular reactive forms work. I added this sample to demo page also.