-
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
fix(animations): don't reflow in 'ngbRunTransition' #3962
fix(animations): don't reflow in 'ngbRunTransition' #3962
Conversation
@@ -397,7 +395,7 @@ export class NgbAccordion implements AfterContentChecked { | |||
this.activeIds = this.panels.filter(panel => panel.isOpen && !panel.disabled).map(panel => panel.id); | |||
} | |||
|
|||
private _runTransitions(animation: boolean, emitEvent = true) { | |||
private _runTransitions(animation: boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: removing this, because it is never used
f1b1637
to
b0a9cca
Compare
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
b0a9cca
to
a96cb42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @maxokorokov, LGTM !
Besides fixing the issues, I feel the code much better this way, with a more fine grain control on what to do for each animation, with or without animation enabled.
Replace a generic
reflow()
call inngbRunTransition
:animation
flag for reflowsFixes #3954
Fixes #3952