From e8bf4b38aecabd0fd715cca4829a0caeb642dc25 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Wed, 16 Aug 2017 15:11:41 -0300 Subject: [PATCH] fix(form-textarea): not respecting rows when max-rows provided --- lib/components/form-textarea.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 [