Skip to content

Commit

Permalink
fix(module:se): fix ingore error visual when is disabled (#339)
Browse files Browse the repository at this point in the history
* fix(module:se): fix ingore error visual when is disabled

- https://github.com/ng-alain/delon/issues/312
  • Loading branch information
cipchk committed Dec 26, 2018
1 parent 05dedc3 commit 7223e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abc/edit/edit.component.ts
Expand Up @@ -115,7 +115,7 @@ export class SEComponent implements OnChanges, AfterViewInit, OnDestroy {
if (!this.ngControl || this.status$) return;

this.status$ = this.ngControl.statusChanges.subscribe(res => {
if (this.ngControl.isDisabled) {
if (this.ngControl.disabled || this.ngControl.isDisabled) {
return ;
}
const status = res !== 'VALID';
Expand Down

0 comments on commit 7223e85

Please sign in to comment.