fix(TextArea): calculateNodeHeight (#9107) (#9108)

This commit is contained in:
YuChao Liang 2018-02-04 16:18:20 +08:00 committed by Wei Zhu
parent 24e373a812
commit 75c365aa2c

View File

@ -138,7 +138,7 @@ export default function calculateNodeHeight(
if (minRows !== null || maxRows !== null) {
// measure height of a textarea with a single row
hiddenTextarea.value = '';
hiddenTextarea.value = ' ';
let singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
if (minRows !== null) {
minHeight = singleRowHeight * minRows;