Skip to content

Commit

Permalink
feat: optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
igauch committed Jan 15, 2024
1 parent c1df61c commit d756a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/form/common-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import { coerceAttrBoolean } from '../utils';
export class CommonFormControl<V, M = V> implements ControlValueAccessor {
@Input()
get disabled() {
return this._disabled;
return this._readonly || this._disabled;
}

set disabled(val: boolean | '') {
this._disabled = this._readonly || coerceAttrBoolean(val);
this._disabled = coerceAttrBoolean(val);
}

@Input()
Expand Down

0 comments on commit d756a32

Please sign in to comment.