Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sidenav): scrollable instance not exposed when explicitly specifying content element #11706

Merged

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Jun 7, 2018

This is a resubmit of #11517 which got in by accident.

  • Fixes the MatSidenavContainer.scrollable being undefined if the consumer has set the mat-sidenav-content themselves. The issue comes from the fact that we only query for scrollables inside the drawer's own view, but not inside the projected content.
  • Fixes the example in the sidenav docs accessing the scrollable too early.

Fixes #10884.

BREAKING CHANGE: the constructor signature of the MatDrawerContent and MatSidenavContent has changed.

…ing content element

* Fixes the `MatSidenavContainer.scrollable` being undefined if the consumer has set the `mat-sidenav-content` themselves. The issue comes from the fact that we only query for scrollables inside the drawer's own view, but not inside the projected content.
* Fixes the example in the sidenav docs accessing the scrollable too early.

Fixes angular#10884.

BREAKING CHANGE: the constructor signature of the `MatDrawerContent` and `MatSidenavContent` has changed.
@crisbeto crisbeto added the target: major This PR is targeted for the next major release label Jun 7, 2018
@crisbeto crisbeto requested a review from mmalerba as a code owner June 7, 2018 18:01
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 7, 2018
@andrewseguin andrewseguin added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jun 7, 2018
@mmalerba mmalerba merged commit 441c98e into angular:master Jul 29, 2018
devversion added a commit to devversion/material2 that referenced this pull request Sep 9, 2018
* Adds the constructor signature check data for angular#11706 which is already published in `7.0.0-beta.0`.
devversion added a commit to devversion/material2 that referenced this pull request Sep 9, 2018
* Adds the constructor signature check data for angular#11706 which is already published in `7.0.0-beta.0`.
jelbourn pushed a commit that referenced this pull request Sep 10, 2018
Adds the constructor signature check data for #11706 which is already published in `7.0.0-beta.0`.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MatSidenavContainer scroll events not working as documented
4 participants