Skip to content

MOBILE-5015 loading: Workaround to fix animation.leave not firing#4733

Merged
dpalou merged 2 commits intomoodlehq:mainfrom
crazyserver:MOBILE-5015
Feb 26, 2026
Merged

MOBILE-5015 loading: Workaround to fix animation.leave not firing#4733
dpalou merged 2 commits intomoodlehq:mainfrom
crazyserver:MOBILE-5015

Conversation

@crazyserver
Copy link
Member

https://moodle.atlassian.net/browse/MOBILE-5015

Problem was introduced when changing the animation scheduling here: . We’ve testing this is solved by reverting to 20.3.5 or updating angular to 21.2.0.

We’ve decided to make a workaround just to solve the issue in core-loading.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a workaround for an Angular animation issue introduced in version 20.3.6 where the animation.leave event is not firing correctly. The fix manually emulates the leave animation by adding a CSS class and removing the element after the animation completes, targeting the core-loading component specifically.

Changes:

  • Added a workaround in the core-loading component to manually trigger the hide animation and remove the loading container element after 500ms
  • Included a TODO comment indicating this should be removed when updating to Angular v21

@dpalou dpalou merged commit 144783b into moodlehq:main Feb 26, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants