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';
4040 selector : 'snack-bar-container' ,
4141 templateUrl : 'snack-bar-container.html' ,
4242 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 ,
4448 encapsulation : ViewEncapsulation . None ,
4549 animations : [ matSnackBarAnimations . snackBarState ] ,
4650 host : {
You can’t perform that action at this time.
0 commit comments