Skip to content

fix(datepicker): wait for exit animation to finish before detaching content - #12440

Closed
crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:datepicker-animation-element-destroy
Closed

fix(datepicker): wait for exit animation to finish before detaching content#12440
crisbeto wants to merge 1 commit into
angular:masterfrom
crisbeto:datepicker-animation-element-destroy

Conversation

@crisbeto

Copy link
Copy Markdown
Member

This is something I ran into while working on aligning the datepicker with the most-recent Material design spec. Since #9639 we use a portal outlet to render the calendar header. The portal outlet directive will detach in ngOnDestroy and it won't wait for the parent animation to finish, which ends up shifting the entire calendar up while it's animating away. The only reason that this isn't visible at the moment is because the current animation isn't configured correctly, which causes it to go to opacity: 0 immediately.

For reference:
demo

@crisbetocrisbeto added the target: patch This PR is targeted for the next patch release label Jul 30, 2018
@crisbeto
crisbeto requested a review from mmalerba as a code ownerJuly 30, 2018 19:48
@googlebotgooglebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 30, 2018
@mmalerbammalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jul 30, 2018

@mmalerbammalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suspect we might have to bump this to a minor or major change, but lets see what happens when we presubmit

@mmalerbammalerba added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Jul 30, 2018
@crisbeto
crisbetoforce-pushed the datepicker-animation-element-destroy branch 3 times, most recently from 399b6b3 to e11fa08CompareOctober 2, 2018 18:16
@crisbeto
crisbetoforce-pushed the datepicker-animation-element-destroy branch from e11fa08 to 79f79ceCompareDecember 13, 2018 17:40
@crisbeto
crisbetoforce-pushed the datepicker-animation-element-destroy branch from 79f79ce to 37559ccCompareJanuary 2, 2019 11:10
@mmalerbammalerba added aaa and removed aaa labels Apr 25, 2019
@crisbeto
crisbetoforce-pushed the datepicker-animation-element-destroy branch from 37559cc to beea098CompareMay 30, 2019 06:24
…ontent
This is something I ran into while working on aligning the datepicker with the most-recent Material design spec. Since angular#9639 we use a portal outlet to render the calendar header. The portal outlet directive will detach in `ngOnDestroy` and it won't wait for the parent animation to finish, which ends up shifting the entire calendar up while it's animating away. The only reason that this isn't visible at the moment is because the current animation isn't configured correctly, which causes it to go to `opacity: 0` immediately.
@crisbeto
crisbetoforce-pushed the datepicker-animation-element-destroy branch from beea098 to bace7f9CompareMay 30, 2019 06:30
@mmalerbammalerba removed their assignment Aug 12, 2019
@mmalerbammalerba removed the lgtm label Jul 31, 2020
@andrewseguinandrewseguin added needs rebase and removed cla: yes PR author has agreed to Google's Contributor License Agreement labels Dec 29, 2021
@crisbeto

Copy link
Copy Markdown
MemberAuthor

I went back to rebase this, but I think that the issue was addressed as a part of the refactor in 7039d3e.

@angular-automatic-lock-bot

Copy link
Copy Markdown

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-botangular-automatic-lock-botBot locked and limited conversation to collaborators Apr 25, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: mergeThe PR is ready for merge by the caretakermerge: caretaker noteAlert the caretaker performing the merge to check the PR for an out of normal action needed or notetarget: patchThis PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@crisbeto@mmalerba@googlebot@andrewseguin