Check every rows are selected to keep global selection checked

Closes #13393
This commit is contained in:
Cédric Krier committed 2024-07-05 15:15:28 +02:00
1 parent c058c1791d
commit e3172b2dc5
1 file changed
+3 -3
+3 -3
View File
@@ -1239,9 +1239,9 @@
this.selection.prop('indeterminate', false);
if (jQuery.isEmptyObject(selected_records)) {
this.selection.prop('checked', false);
} else if (selected_records.length ==
this.tbody.children().length &&
this.display_size >= this.group.length) {
} else if (
this.rows.every((row) => row.is_selected()) &&
(selected_records.length >= this.tbody.children().length)) {
this.selection.prop('checked', true);
} else {
this.selection.prop('indeterminate', true);