Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit e3636ae

Browse files
Googlernshahan
authored andcommitted
Fix runtime error
oSuchMethodError: invalid member on null: 'selectionChanges' PiperOrigin-RevId: 243122097
1 parent 091961b commit e3636ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular_components/lib/material_menu/menu_item_groups.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ class MenuItemGroupsComponent
535535
void _listenForSelectionChanges(MenuItemGroup group) {
536536
if (group is MenuItemGroupWithSelection) {
537537
_disposer.addStreamSubscription(
538-
group.selectionModel.selectionChanges.listen((_) {
538+
group.selectionModel?.selectionChanges?.listen((_) {
539539
_updateItemsAriaCheckedState(_menu);
540540
}));
541541
}

0 commit comments

Comments
 (0)