1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

fix: 🐛 Evidenzia le righe selezionate quando si selezionano tutte le righe

This commit is contained in:
Maicol Battistini
2021-11-23 21:51:16 +01:00
parent 203b79d2d9
commit 2e411b5576

View File

@ -49,10 +49,13 @@ export default class TableColumn extends Component {
.children('mwc-checkbox');
checkbox.on('change', () => {
$(vnode.dom)
const row: Cash = $(this.element)
.closest('table')
.find('tbody tr[checkable] mwc-checkbox')
.prop('checked', checkbox.prop('checked'));
.find('tbody tr[checkable]');
row.addClass('mdc-data-table__row--selected');
row.find('mwc-checkbox').prop('checked', checkbox.prop('checked'));
});
}