Check every rows are selected to keep global selection checked

Closes #13393
(grafted from 451236ad0b5ed240675e3db6e7c9f0dc133cdfd9)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2024-07-05 15:15:28 +02:00
1 parent a966fca96d
commit f11d90ada0
1 file changed
+3 -3
+3 -3
View File
@@ -1040,9 +1040,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);