Fixing issue with auto checkboxes in data-table
parent
172358f769
commit
6fc0ed2ece
|
@ -123,7 +123,6 @@ MaterialDataTable.prototype.init = function() {
|
||||||
var headerCheckbox = this.createCheckbox_(null, rows);
|
var headerCheckbox = this.createCheckbox_(null, rows);
|
||||||
th.appendChild(headerCheckbox);
|
th.appendChild(headerCheckbox);
|
||||||
firstHeader.parentElement.insertBefore(th, firstHeader);
|
firstHeader.parentElement.insertBefore(th, firstHeader);
|
||||||
}
|
|
||||||
|
|
||||||
for (var i = 0; i < rows.length; i++) {
|
for (var i = 0; i < rows.length; i++) {
|
||||||
var firstCell = rows[i].querySelector('td');
|
var firstCell = rows[i].querySelector('td');
|
||||||
|
@ -134,6 +133,7 @@ MaterialDataTable.prototype.init = function() {
|
||||||
rows[i].insertBefore(td, firstCell);
|
rows[i].insertBefore(td, firstCell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.element_.classList.add(this.CssClasses_.IS_UPGRADED);
|
this.element_.classList.add(this.CssClasses_.IS_UPGRADED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue