File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ import {MatSnackBarConfig} from './snack-bar-config';
40
40
selector : 'snack-bar-container' ,
41
41
templateUrl : 'snack-bar-container.html' ,
42
42
styleUrls : [ 'snack-bar-container.css' ] ,
43
- changeDetection : ChangeDetectionStrategy . OnPush ,
43
+ // In Ivy embedded views will be change detected from their declaration place, rather than
44
+ // where they were stamped out. This means that we can't have the snack bar container be OnPush,
45
+ // because it might cause snack bars that were opened from a template not to be out of date.
46
+ // tslint:disable-next-line:validate-decorators
47
+ changeDetection : ChangeDetectionStrategy . Default ,
44
48
encapsulation : ViewEncapsulation . None ,
45
49
animations : [ matSnackBarAnimations . snackBarState ] ,
46
50
host : {
You can’t perform that action at this time.
0 commit comments