File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
projects/right-sheet/src/lib 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 { MatRightSheetConfig } from './right-sheet.config';
40
40
selector : 'mat-right-sheet-container' ,
41
41
templateUrl : './right-sheet.container.html' ,
42
42
styleUrls : [ './right-sheet.container.scss' ] ,
43
- changeDetection : ChangeDetectionStrategy . OnPush ,
43
+ // In Ivy embedded views will be change detected from their declaration place, rather than where
44
+ // they were stamped out. This means that we can't have the bottom sheet container be OnPush,
45
+ // because it might cause the sheets 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
// tslint:disable-next-line: use-view-encapsulation
45
49
encapsulation : ViewEncapsulation . None ,
46
50
animations : [ matRightSheetAnimations . rightSheetState ] ,
You can’t perform that action at this time.
0 commit comments