Skip to content

Commit

Permalink
Chat: messageBox should be extended from DOMComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeniyKiyashko committed Sep 4, 2024
1 parent e4e6505 commit e4c9e0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/devextreme/js/__internal/core/widget/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ export class Component<
TProperties extends Properties<TComponent>,
// eslint-disable-next-line @typescript-eslint/ban-types
> extends (Class.inherit({}) as new() => {}) {
_deprecatedOptions: Partial<TProperties> = {};
_deprecatedOptions!: Partial<TProperties>;

_options!: Options;

_optionsByReference: Partial<TProperties> = {};
_optionsByReference!: Partial<TProperties>;

NAME?: string;

Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme/js/__internal/core/widget/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Widget<

private _contentReadyAction?: ((event?: Record<string, unknown>) => void) | null;

private readonly _activeStateUnit: string = '';
private readonly _activeStateUnit!: string;

private _keyboardListenerId?: string | null;

Expand Down Expand Up @@ -543,7 +543,7 @@ class Widget<
}

_toggleIndependentState(): void {
const { ignoreParentReadOnly } = this.option('ignoreParentReadOnly');
const { ignoreParentReadOnly } = this.option();

this.$element().toggleClass('dx-state-independent', ignoreParentReadOnly);
}
Expand Down

0 comments on commit e4c9e0f

Please sign in to comment.