Skip to content

Commit

Permalink
fix(module:form): fix invalid disabled status when is readOnly (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Oct 13, 2018
1 parent 61c6214 commit 6a68def
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/form/src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export abstract class Widget<T extends FormProperty> implements AfterViewInit {
}

get disabled(): boolean {
if (typeof this.schema.readOnly !== 'undefined')
return this.schema.readOnly;
if (this.schema.readOnly === true) return true;

return null;
}
Expand Down

0 comments on commit 6a68def

Please sign in to comment.