Skip to content

Commit 11a8289

Browse files
committed
grid.View: aria rowindex #6175
1 parent 777f3dd commit 11a8289

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/grid/View.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ class GridView extends Component {
401401

402402
gridRow = {
403403
id,
404-
'aria-rowindex': rowIndex,
404+
'aria-rowindex': rowIndex + 2, // header row => 1, first body row => 2, see https://github.com/neomjs/neo/issues/6175
405405
cls : trCls,
406406
cn : [],
407407
role : 'row',

src/grid/header/Toolbar.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ class Toolbar extends BaseToolbar {
3838
/**
3939
* @member {Boolean} sortable=true
4040
*/
41-
sortable: true
41+
sortable: true,
42+
/**
43+
* @member {Object} _vdom
44+
*/
45+
_vdom:
46+
{'aria-rowindex':1, cn: [{cn: []}]}
4247
}
4348

4449
/**

0 commit comments

Comments
 (0)