maciej.zabielski
11 Jul 2019, 2:28 AM
When using Ext.grid.feature.Summary a row that is added contains role presentation on the main element.
The row is built based on template:
me.summaryBar = grid.addDocked({ childEls: ['innerCt', 'item'],
/* eslint-disable indent, max-len */
renderTpl: [
'<div id="{id}-innerCt" data-ref="innerCt" role="presentation">',
'<table id="{id}-item" data-ref="item" cellPadding="0" cellSpacing="0" class="' + tableCls.join(' ') + '">',
'<tr class="' + me.summaryRowCls + '"></tr>',
'</table>',
'</div>'
],
But.... the Table Row visible there gets updated somewhere on the way, when the columns are added.
When outputted to DOM, it will have this shape:
<tr class="x-grid-row-summary x-grid-row-total x-grid-row-summary-item " role=""></tr>
Empty role attribute should not be emitted.
Can anyone spot the location where the columns are added to this row and where the row gets updated with extra classes and this empty role attribute?
Regards,
Maciej
The row is built based on template:
me.summaryBar = grid.addDocked({ childEls: ['innerCt', 'item'],
/* eslint-disable indent, max-len */
renderTpl: [
'<div id="{id}-innerCt" data-ref="innerCt" role="presentation">',
'<table id="{id}-item" data-ref="item" cellPadding="0" cellSpacing="0" class="' + tableCls.join(' ') + '">',
'<tr class="' + me.summaryRowCls + '"></tr>',
'</table>',
'</div>'
],
But.... the Table Row visible there gets updated somewhere on the way, when the columns are added.
When outputted to DOM, it will have this shape:
<tr class="x-grid-row-summary x-grid-row-total x-grid-row-summary-item " role=""></tr>
Empty role attribute should not be emitted.
Can anyone spot the location where the columns are added to this row and where the row gets updated with extra classes and this empty role attribute?
Regards,
Maciej