diff --git a/frontend/src/common/js/utils.js b/frontend/src/common/js/utils.js index 41f72d92cf..d2946f13e3 100644 --- a/frontend/src/common/js/utils.js +++ b/frontend/src/common/js/utils.js @@ -568,7 +568,7 @@ function _resizeTextarea(i, size, textareaList) { let maxHeight = 0; for (let j = 0; j < size; j++) { let cur = textareaList[i + j]; - let curHeight = Number.parseInt(calcTextareaHeight(cur).height.replace(/[^\d]/g, '')); + let curHeight = parseFloat(calcTextareaHeight(cur).height); maxHeight = Math.max(curHeight, maxHeight); }