Permalink
Browse files

fix(table): fix aria-rowcount (#1836)

  • Loading branch information...
sschadwick authored and pi0 committed May 17, 2018
1 parent 69e410d commit e3e54395838261e296f92ab5baac635ba9f78803
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/components/table/table.js
@@ -358,10 +358,8 @@ export default {
role: this.isStacked ? 'table' : null,
'aria-busy': this.computedBusy ? 'true' : 'false',
'aria-colcount': String(fields.length),
'aria-rowcount':
this.$attrs['aria-rowcount'] || (this.perPage && this.perPage > 0)
? '-1'
: null
'aria-rowcount': this.$attrs['aria-rowcount'] ||
this.items.length > this.perPage ? this.items.length : null
}
},
[caption, colgroup, thead, tfoot, tbody]

0 comments on commit e3e5439

Please sign in to comment.