Skip to content

Commit

Permalink
Merge pull request #174 from tatermelon/gridfix
Browse files Browse the repository at this point in the history
Move rowindex to row instead of col
  • Loading branch information
mcking65 authored Dec 3, 2016
2 parents 096593e + 25789e2 commit a02a64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/grid/js/dataGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ aria.Grid.prototype.setupIndices = function () {

for (var row = 0; row < rows.length; row++) {
var cols = rows[row].querySelectorAll(aria.GridSelector.CELL);
rows[row].setAttribute('aria-rowindex', row + 1);

for (var col = 0; col < cols.length; col++) {
cols[col].setAttribute('aria-rowindex', row + 1);
cols[col].setAttribute('aria-colindex', col + 1);
}

Expand Down

0 comments on commit a02a64a

Please sign in to comment.