Skip to content

Commit

Permalink
fix(form-textarea): not respecting rows when max-rows provided
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse committed Aug 16, 2017
1 parent 1f758b1 commit e8bf4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/form-textarea.vue
Expand Up @@ -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 [
Expand Down

0 comments on commit e8bf4b3

Please sign in to comment.