We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f711d8a commit 93fc4ffCopy full SHA for 93fc4ff
src/components/sidenav/sidenav.ts
@@ -244,7 +244,9 @@ export class MdSidenav {
244
directives: [MdSidenav],
245
templateUrl: './components/sidenav/sidenav.html',
246
styleUrls: ['./components/sidenav/sidenav.css'],
247
- changeDetection: ChangeDetectionStrategy.OnPush,
+ // Do not use ChangeDetectionStrategy.OnPush. It does not work for this component because
248
+ // technically it is a sibling of MdSidenav (on the content tree) and isn't updated when MdSidenav
249
+ // changes its state.
250
})
251
export class MdSidenavLayout implements AfterContentInit {
252
@ContentChildren(MdSidenav) private sidenavs_: QueryList<MdSidenav>;
0 commit comments