Skip to content

Commit

Permalink
refactor(chat)
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Sep 30, 2024
1 parent 77b08e7 commit ef44cc4
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/ui/chat/messagebox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ class MessageBox extends DOMComponent<MessageBox, Properties> {
this._button.option('disabled', state);
}

_updateAria(value: string | null): void {
_updateAria(emptyViewId: string | null): void {
$(this._textArea.$element())
.find(`.${TEXTEDITOR_INPUT_CLASS}`)
.attr('aria-labelledby', value);
.attr('aria-labelledby', emptyViewId);
}

_isValuableTextEntered(): boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ QUnit.module('MessageList', moduleConfig, () => {
});

QUnit.module('Accessibility', () => {
QUnit.test('container should be have id attribute', function(assert) {
QUnit.test('emptyView should have id attribute', function(assert) {
const id = this.$element.find(`.${CHAT_MESSAGELIST_EMPTY_VIEW_CLASS}`).attr('id');

assert.strictEqual(id !== undefined, true);
assert.notStrictEqual(id, undefined);
});

[
Expand Down

0 comments on commit ef44cc4

Please sign in to comment.