diff --git a/packages/devextreme/js/__internal/ui/chat/chat_message_list.ts b/packages/devextreme/js/__internal/ui/chat/chat_message_list.ts index de538aab406f..38571b62ba12 100644 --- a/packages/devextreme/js/__internal/ui/chat/chat_message_list.ts +++ b/packages/devextreme/js/__internal/ui/chat/chat_message_list.ts @@ -60,7 +60,10 @@ class MessageList extends Widget { } _createMessageGroupComponent(items: Message[], userId: string | number | undefined): void { - const $messageGroup = $('
').appendTo(this._$content); + const scrollableContent = this._scrollable?.content(); + const messageGroupContainer = scrollableContent || this._$content; + + const $messageGroup = $('
').appendTo(messageGroupContainer); const messageGroup = this._createComponent($messageGroup, MessageGroup, { items,