-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Modal's entry animations are missing in Angular production build #3952
Milestone
Comments
peruukki
changed the title
Modal's entry animation is missing in Angular 11 production build
Modal's entry animation is missing in Angular production build
Jan 15, 2021
peruukki
changed the title
Modal's entry animation is missing in Angular production build
Modal's entry animations are missing in Angular production build
Jan 15, 2021
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Jan 20, 2021
Replace a generic `reflow()` call in `ngbRunTransition`: - introduce granular per-component reflows only when necessary - take into account `animation` flag for reflows Fixes ng-bootstrap#3954 Fixes ng-bootstrap#3952
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Jan 20, 2021
Replace a generic `reflow()` call in `ngbRunTransition`: - introduce granular per-component reflows only when necessary - take into account `animation` flag for reflows Fixes ng-bootstrap#3954 Fixes ng-bootstrap#3952
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Jan 20, 2021
Replace a generic `reflow()` call in `ngbRunTransition`: - introduce granular per-component reflows only when necessary - take into account `animation` flag for reflows Fixes ng-bootstrap#3954 Fixes ng-bootstrap#3952
maxokorokov
added a commit
that referenced
this issue
Jan 20, 2021
maxokorokov
added a commit
that referenced
this issue
Jan 21, 2021
Fixed in |
Same problem with ngbCollapse on ng-bootstrap 9.0.2 and Angular 11.1: no animation in prod build. |
@4javier, please open a separate issue for this filling the template and providing a reproduction scenario. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description:
I noticed that the modals are missing their entry animations (the downwards movement) when running the production build of an Angular 11 application:
The animation works correctly when running the development server:
Also, the exit animation (upwards movement) works in both cases.
Link to minimally-working StackBlitz that reproduces the issue:
I can only reproduce the problem with Angular's production build, which StackBlitz doesn't support as far as I know. But I created a minimal example repository that contains ng-bootstrap's modal demo page, and where the problem can be reproduced: https://github.com/peruukki/ng-bootstrap-modal-example.
Versions of Angular, ng-bootstrap and Bootstrap:
Angular: 11.0.9
ng-bootstrap: 9.0.0
Bootstrap: 4.5.3
The text was updated successfully, but these errors were encountered: