Skip to content

Commit e3e5439

Browse files
sschadwickpi0
authored andcommitted
fix(table): fix aria-rowcount (#1836)
1 parent 69e410d commit e3e5439

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/table/table.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,8 @@ export default {
358358
role: this.isStacked ? 'table' : null,
359359
'aria-busy': this.computedBusy ? 'true' : 'false',
360360
'aria-colcount': String(fields.length),
361-
'aria-rowcount':
362-
this.$attrs['aria-rowcount'] || (this.perPage && this.perPage > 0)
363-
? '-1'
364-
: null
361+
'aria-rowcount': this.$attrs['aria-rowcount'] ||
362+
this.items.length > this.perPage ? this.items.length : null
365363
}
366364
},
367365
[caption, colgroup, thead, tfoot, tbody]

0 commit comments

Comments
 (0)