Skip to content

fix(material/dialog): exit animation not being picked up #27372

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
merged 1 commit into from
Jun 27, 2023

Conversation

crisbeto
Copy link
Member

Fixes that the dialog wasn't using the specified exit animation duration.

Fixes #27367.

Fixes that the dialog wasn't using the specified exit animation duration.

Fixes angular#27367.
@crisbeto crisbeto added P4 A relatively minor issue that is not relevant to core functions target: patch This PR is targeted for the next patch release labels Jun 27, 2023
@crisbeto crisbeto requested a review from devversion as a code owner June 27, 2023 08:48
this._hostElement.classList.remove(OPEN_CLASS);

if (this._animationsEnabled) {
this._hostElement.style.setProperty(
TRANSITION_DURATION_PROPERTY,
`${this._openAnimationDuration}ms`,
`${this._exitAnimationDuration}ms`,
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the actual fix. The rest of the changes are to align the internal terminology with the public API.

@crisbeto crisbeto requested a review from wagnermaciel June 27, 2023 10:38
Copy link
Contributor

@wagnermaciel wagnermaciel left a comment

Choose a reason for hiding this comment

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

lgtm

@crisbeto crisbeto self-assigned this Jun 27, 2023
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed labels Jun 27, 2023
@crisbeto crisbeto merged commit cc1b322 into angular:main Jun 27, 2023
crisbeto added a commit that referenced this pull request Jun 27, 2023
…7372)

Fixes that the dialog wasn't using the specified exit animation duration.

(cherry picked from commit cc1b322)
@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 Jul 28, 2023
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 merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed P4 A relatively minor issue that is not relevant to core functions target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(mat-dialog): Regression - exitAnimationDuration isn't respected
2 participants