diff --git a/packages/form/src/widget.ts b/packages/form/src/widget.ts index 51a7abc6a..59366dec4 100644 --- a/packages/form/src/widget.ts +++ b/packages/form/src/widget.ts @@ -30,8 +30,7 @@ export abstract class Widget implements AfterViewInit { } get disabled(): boolean { - if (typeof this.schema.readOnly !== 'undefined') - return this.schema.readOnly; + if (this.schema.readOnly === true) return true; return null; }