From ab6ba38b8c656d79ebc04b5715034ac27a5467a4 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 25 Jul 2022 17:12:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B5=8F=E8=A7=88=E5=99=A8=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E6=AF=94=E4=BE=8B=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=AD=A5=E9=AA=A4=E6=96=87=E6=9C=AC=E6=A1=86=E6=8B=89?= =?UTF-8?q?=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/common/js/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }