Skip to content

fix(overlay): handle OnDestroy in FullscreenOverlayContainer and use document injection token #10773

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

Merged

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 9, 2018

  • Fixes the fullscreenchange event handler not being cleared from the FullscreenOverlayContainer once it's destroyed.
  • Uses the DOCUMENT token to avoid potential server-side rendering errors.

@crisbeto crisbeto requested a review from jelbourn as a code owner April 9, 2018 17:34
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 9, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release and removed pr: needs review labels Apr 9, 2018
@tinayuangao
Copy link
Contributor

@crisbeto Please rebase. Thanks

@crisbeto
Copy link
Member Author

Rebased.

@crisbeto crisbeto force-pushed the fullscreen-overlay-container-on-destroy branch from 820b5db to 77ed733 Compare April 11, 2018 20:20
@tinayuangao
Copy link
Contributor

@crisbeto Got error saying Property '_document' is private and only accessible within class 'OverlayContainer'.

@tinayuangao tinayuangao added the presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged label Apr 12, 2018
@crisbeto crisbeto force-pushed the fullscreen-overlay-container-on-destroy branch from 77ed733 to 497e867 Compare April 12, 2018 19:20
@crisbeto
Copy link
Member Author

Sorry @tinayuangao, I messed it up when rebasing. It's fixed now.

@crisbeto crisbeto removed the presubmit failures This PR has failures in Google's internal presubmit process and cannot be immediately merged label Apr 12, 2018
…document injection token

* Fixes the `fullscreenchange` event handler not being cleared from the `FullscreenOverlayContainer` once it's destroyed.
* Uses the `DOCUMENT` token to avoid potential server-side rendering errors.
@crisbeto crisbeto force-pushed the fullscreen-overlay-container-on-destroy branch from 497e867 to d4550f6 Compare April 13, 2018 21:16
@mmalerba mmalerba merged commit d2b183e into angular:master Apr 18, 2018
@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 8, 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: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants