File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
ts/WoltLabSuite/Core/Component/GridView
wcfsetup/install/files/js/WoltLabSuite/Core/Component/GridView Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,16 @@ export class Selection {
5454 if ( forceValue === undefined ) {
5555 if ( this . #markAll !== null ) {
5656 const markedCheckboxes = checkboxes . filter ( ( checkbox ) => checkbox . checked ) . length ;
57- this . #markAll. indeterminate = markedCheckboxes > 0 && markedCheckboxes !== checkboxes . length ;
57+ if ( markedCheckboxes === 0 ) {
58+ this . #markAll. checked = false ;
59+ this . #markAll. indeterminate = false ;
60+ } else if ( markedCheckboxes === checkboxes . length ) {
61+ this . #markAll. checked = true ;
62+ this . #markAll. indeterminate = false ;
63+ } else {
64+ this . #markAll. checked = false ;
65+ this . #markAll. indeterminate = markedCheckboxes > 0 && markedCheckboxes !== checkboxes . length ;
66+ }
5867 }
5968 } else {
6069 for ( const checkbox of checkboxes ) {
You can’t perform that action at this time.
0 commit comments