Skip to content

Commit 380058d

Browse files
committed
Corrected appearance issue of the "Select all" checkbox in Chrome having indeterminate state.
1 parent 17328ec commit 380058d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

js/dataTables.checkboxes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,9 @@
794794
$checkboxesSelectAll.data('is-changed', false);
795795

796796
$checkboxesSelectAll.prop({
797-
'checked': isSelected,
797+
// NOTE: If checkbox has indeterminate state,
798+
// "checked" property must be set to false.
799+
'checked': isIndeterminate ? false : isSelected,
798800
'indeterminate': isIndeterminate
799801
});
800802

0 commit comments

Comments
 (0)