Skip to content

Commit e3fb02b

Browse files
author
marker dao ®
committed
feat(chatTextArea): Improve _getMaxHeight
1 parent 97c69df commit e3fb02b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/devextreme/js/__internal/ui/chat/message_box/chat_text_area.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,13 @@ class ChatTextArea extends TextArea<Properties> {
408408
}
409409

410410
_getMaxHeight(): number | undefined {
411-
const maxHeight = parseFloat(this._input().css('maxHeight') ?? '0');
411+
const cssValue = this._input().css('maxHeight');
412+
413+
if (!cssValue || cssValue === 'none') {
414+
return undefined;
415+
}
416+
417+
const maxHeight = parseFloat(cssValue);
412418

413419
return maxHeight;
414420
}

0 commit comments

Comments
 (0)