From d016b7dc9d70cef326507e8eb6deb894cb3343b3 Mon Sep 17 00:00:00 2001 From: Lukasz Kolodziejczyk Date: Mon, 19 Oct 2020 11:35:53 +0000 Subject: [PATCH] Change ChangeDetectionStrategy back to Default --- .../lib/src/material_tree/group/material_tree_group.dart | 1 - .../lib/src/material_tree/group/material_tree_group_flat.dart | 3 --- .../lib/src/material_tree/material_tree_dropdown.dart | 1 - .../lib/src/material_tree/material_tree_filter.dart | 1 - .../lib/src/material_tree/material_tree_impl.dart | 1 - .../lib/components/content/delayed_content.dart | 1 - 6 files changed, 8 deletions(-) diff --git a/angular_components/lib/src/material_tree/group/material_tree_group.dart b/angular_components/lib/src/material_tree/group/material_tree_group.dart index 6945018cc..758fdcc49 100644 --- a/angular_components/lib/src/material_tree/group/material_tree_group.dart +++ b/angular_components/lib/src/material_tree/group/material_tree_group.dart @@ -43,7 +43,6 @@ const materialTreeLeftPaddingToken = ], templateUrl: 'material_tree_group.html', styleUrls: ['material_tree_group.scss.css'], - changeDetection: ChangeDetectionStrategy.OnPush, ) class MaterialTreeGroupComponent extends MaterialTreeNode implements OnDestroy { diff --git a/angular_components/lib/src/material_tree/group/material_tree_group_flat.dart b/angular_components/lib/src/material_tree/group/material_tree_group_flat.dart index 83099273c..2b93bdd70 100644 --- a/angular_components/lib/src/material_tree/group/material_tree_group_flat.dart +++ b/angular_components/lib/src/material_tree/group/material_tree_group_flat.dart @@ -22,7 +22,6 @@ import 'package:angular_components/model/selection/selection_model.dart'; directives: [DynamicComponent, NgFor, NgIf], templateUrl: 'material_tree_group_flat_list.html', styleUrls: ['material_tree_group_flat_list.scss.css'], - changeDetection: ChangeDetectionStrategy.OnPush, ) class MaterialTreeGroupFlatListComponent extends MaterialTreeNode { MaterialTreeGroupFlatListComponent( @@ -50,7 +49,6 @@ class MaterialTreeGroupFlatListComponent extends MaterialTreeNode { ], templateUrl: 'material_tree_group_flat_radio.html', styleUrls: ['material_tree_group_flat_radio.scss.css'], - changeDetection: ChangeDetectionStrategy.OnPush, ) class MaterialTreeGroupFlatRadioComponent extends MaterialTreeNode { final DropdownHandle _dropdownHandle; @@ -91,7 +89,6 @@ class MaterialTreeGroupFlatRadioComponent extends MaterialTreeNode { ], templateUrl: 'material_tree_group_flat_check.html', styleUrls: ['material_tree_group_flat_check.scss.css'], - changeDetection: ChangeDetectionStrategy.OnPush, ) class MaterialTreeGroupFlatCheckComponent extends MaterialTreeNode { final DropdownHandle _dropdownHandle; diff --git a/angular_components/lib/src/material_tree/material_tree_dropdown.dart b/angular_components/lib/src/material_tree/material_tree_dropdown.dart index 707079f3c..b69383f81 100644 --- a/angular_components/lib/src/material_tree/material_tree_dropdown.dart +++ b/angular_components/lib/src/material_tree/material_tree_dropdown.dart @@ -49,7 +49,6 @@ import 'material_tree_impl.dart'; templateUrl: 'material_tree_dropdown.html', styleUrls: ['material_tree_dropdown.scss.css'], visibility: Visibility.all, // injected by clients, - changeDetection: ChangeDetectionStrategy.OnPush, ) class MaterialTreeDropdownComponent with DropdownHandle, MaterialTreeRoot, SelectionContainer diff --git a/angular_components/lib/src/material_tree/material_tree_filter.dart b/angular_components/lib/src/material_tree/material_tree_filter.dart index 59c885de7..9db48a767 100644 --- a/angular_components/lib/src/material_tree/material_tree_filter.dart +++ b/angular_components/lib/src/material_tree/material_tree_filter.dart @@ -18,7 +18,6 @@ import 'package:angular_components/utils/async/async.dart'; selector: 'material-tree-filter', directives: [materialInputDirectives, NgIf], templateUrl: 'material_tree_filter.html', - changeDetection: ChangeDetectionStrategy.OnPush, ) class MaterialTreeFilterComponent { final StreamController _onFocusController = diff --git a/angular_components/lib/src/material_tree/material_tree_impl.dart b/angular_components/lib/src/material_tree/material_tree_impl.dart index af1239e9b..6f4b759ac 100644 --- a/angular_components/lib/src/material_tree/material_tree_impl.dart +++ b/angular_components/lib/src/material_tree/material_tree_impl.dart @@ -46,7 +46,6 @@ import 'material_tree_root.dart'; ], viewProviders: [ExistingProvider(MaterialTreeRoot, MaterialTreeComponent)], templateUrl: 'material_tree_impl.html', - changeDetection: ChangeDetectionStrategy.OnPush, ) class MaterialTreeComponent with MaterialTreeRoot, SelectionContainer { /// Whether to hide check-marks in a single select dropdown diff --git a/angular_gallery_section/lib/components/content/delayed_content.dart b/angular_gallery_section/lib/components/content/delayed_content.dart index 550ed17a7..83ccf9e91 100644 --- a/angular_gallery_section/lib/components/content/delayed_content.dart +++ b/angular_gallery_section/lib/components/content/delayed_content.dart @@ -26,7 +26,6 @@ import 'package:angular_components/material_progress/material_progress.dart'; directives: [MaterialProgressComponent, NgIf], // TODO(google): Change preserveWhitespace to false to improve codesize. preserveWhitespace: true, - changeDetection: ChangeDetectionStrategy.OnPush, ) class DelayedContentComponent implements OnInit { bool resolved = true;