diff --git a/lib/components/form-textarea.vue b/lib/components/form-textarea.vue index 09e1a3755bd..a66d0ca5409 100644 --- a/lib/components/form-textarea.vue +++ b/lib/components/form-textarea.vue @@ -73,7 +73,7 @@ rowsCount() { const rows = this.rows || 1; const lines = (this.value || '').toString().split('\n').length; - return this.maxRows ? Math.min(this.maxRows, lines) : Math.max(rows, lines); + return this.maxRows ? Math.min(this.maxRows, this.rows ? rows : lines) : Math.max(rows, lines); }, inputClass() { return [