Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorBox, ColorView, NumberBox(Base, Mask, Spin), TextArea, Switch, Validation: convert into ES6 class #29205

Open
wants to merge 9 commits into
base: 25_1
Choose a base branch
from
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/core/widget/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ class Widget<
focus.trigger(this._focusTarget());
}

registerKeyHandler(key: string, handler: () => void): void {
registerKeyHandler(key: string, handler: (event?) => void): void {
const currentKeys = this._supportedKeys();

// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @stylistic/max-len
Expand Down
5 changes: 2 additions & 3 deletions packages/devextreme/js/__internal/ui/chat/messagebox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import Button from '@js/ui/button';
import type { Properties as DOMComponentProperties } from '@ts/core/widget/dom_component';
import DOMComponent from '@ts/core/widget/dom_component';
import type { OptionChanged } from '@ts/core/widget/types';
import TextArea from '@ts/ui/m_text_area';

import type { EnterKeyEvent, InputEvent } from '../../../ui/text_area';
import type dxTextArea from '../../../ui/text_area';
import TextArea from '../m_text_area';

const CHAT_MESSAGEBOX_CLASS = 'dx-chat-messagebox';
const CHAT_MESSAGEBOX_TEXTAREA_CLASS = 'dx-chat-messagebox-textarea';
Expand Down Expand Up @@ -38,7 +37,7 @@ export interface Properties extends DOMComponentProperties<MessageBox> {
}

class MessageBox extends DOMComponent<MessageBox, Properties> {
_textArea!: dxTextArea;
_textArea!: TextArea;

_button!: Button;

Expand Down
Loading
Loading