@@ -32,15 +32,16 @@ export abstract class MatInteractiveListBase<T extends MatListItemBase>
32
32
}
33
33
34
34
_handleClick ( event : MouseEvent ) {
35
- // The `toggleCheckbox` parameter can always be `true` as it only has an effect if the list
36
- // is recognized as checkbox selection list. For such lists, we would always want to toggle
37
- // the checkbox on list item click. MDC added this parameter so that they can avoid dispatching
38
- // a fake `change` event when the checkbox is directly clicked for the list item. We don't
39
- // need this as we require such list item checkboxes to stop propagation of the change event.
35
+ // The `isCheckboxAlreadyUpdatedInAdapter` parameter can always be `false` as it only has an
36
+ // effect if the list is recognized as checkbox selection list. For such lists, we would
37
+ // always want to toggle the checkbox on list item click. MDC added this parameter so that
38
+ // they can avoid dispatching a fake `change` event when the checkbox is directly clicked
39
+ // for the list item. We don't need this as we do not have an underlying native checkbox
40
+ // that is reachable by users through interaction.
40
41
// https://github.com/material-components/material-components-web/blob/08ca4d0ec5f359bc3a20bd2a302fa6b733b5e135/packages/mdc-list/component.ts#L308-L310
41
42
this . _foundation . handleClick (
42
43
this . _indexForElement ( event . target as HTMLElement ) ,
43
- /* toggleCheckbox */ true ,
44
+ /* isCheckboxAlreadyUpdatedInAdapter */ false ,
44
45
) ;
45
46
}
46
47
@@ -217,6 +218,7 @@ export function getInteractiveListAdapter(
217
218
isCheckboxCheckedAtIndex ( index : number ) {
218
219
return false ;
219
220
} ,
221
+ notifySelectionChange ( ) { } ,
220
222
notifyAction ( ) { } ,
221
223
} ;
222
224
}
0 commit comments