Permalink
Browse files

fix(form-textarea): not respecting rows when max-rows provided

  • Loading branch information...
tmorehouse committed Aug 16, 2017
1 parent 1f758b1 commit e8bf4b38aecabd0fd715cca4829a0caeb642dc25
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 [

0 comments on commit e8bf4b3

Please sign in to comment.