From e4c9e0fe9613c44655ec24b477bc0d81b3561e99 Mon Sep 17 00:00:00 2001 From: EugeniyKiyashko Date: Wed, 4 Sep 2024 12:17:54 +0400 Subject: [PATCH] Chat: messageBox should be extended from DOMComponent --- packages/devextreme/js/__internal/core/widget/component.ts | 4 ++-- packages/devextreme/js/__internal/core/widget/widget.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); }