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:
@ -49,10 +49,13 @@ export default class TableColumn extends Component {
|
|||||||
.children('mwc-checkbox');
|
.children('mwc-checkbox');
|
||||||
|
|
||||||
checkbox.on('change', () => {
|
checkbox.on('change', () => {
|
||||||
$(vnode.dom)
|
const row: Cash = $(this.element)
|
||||||
.closest('table')
|
.closest('table')
|
||||||
.find('tbody tr[checkable] mwc-checkbox')
|
.find('tbody tr[checkable]');
|
||||||
.prop('checked', checkbox.prop('checked'));
|
|
||||||
|
row.addClass('mdc-data-table__row--selected');
|
||||||
|
|
||||||
|
row.find('mwc-checkbox').prop('checked', checkbox.prop('checked'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user