diff --git a/packages/devextreme/js/__internal/core/widget/component.ts b/packages/devextreme/js/__internal/core/widget/component.ts index a88d5f334f08..ec6b5587f570 100644 --- a/packages/devextreme/js/__internal/core/widget/component.ts +++ b/packages/devextreme/js/__internal/core/widget/component.ts @@ -45,11 +45,11 @@ export class Component< TProperties extends Properties, // eslint-disable-next-line @typescript-eslint/ban-types > extends (Class.inherit({}) as new() => {}) { - _deprecatedOptions: Partial = {}; + _deprecatedOptions!: Partial; _options!: Options; - _optionsByReference: Partial = {}; + _optionsByReference!: Partial; NAME?: string; diff --git a/packages/devextreme/js/__internal/core/widget/widget.ts b/packages/devextreme/js/__internal/core/widget/widget.ts index 710536a2d216..7bc01ab41ff0 100644 --- a/packages/devextreme/js/__internal/core/widget/widget.ts +++ b/packages/devextreme/js/__internal/core/widget/widget.ts @@ -53,7 +53,7 @@ class Widget< private _contentReadyAction?: ((event?: Record) => void) | null; - private readonly _activeStateUnit: string = ''; + private readonly _activeStateUnit!: string; private _keyboardListenerId?: string | null; @@ -543,7 +543,7 @@ class Widget< } _toggleIndependentState(): void { - const { ignoreParentReadOnly } = this.option('ignoreParentReadOnly'); + const { ignoreParentReadOnly } = this.option(); this.$element().toggleClass('dx-state-independent', ignoreParentReadOnly); }