Skip to content

Commit

Permalink
Fix animationRunning flag is not reseted when clicking on expand all …
Browse files Browse the repository at this point in the history
…button (when pages are already expanded) (#5946)
  • Loading branch information
dk981234 authored Oct 8, 2024
1 parent 41f1d0d commit 9462ee0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export class SurveyElementAdornerBase<T extends SurveyElement = SurveyElement> e
this._renderedCollapsed = !val;
}, () => !this.renderedCollapsed);
public set renderedCollapsed(val: boolean) {
if (this.animationAllowed) this.expandCollapseAnimationRunning = true;
if (this.animationAllowed && val !== this.renderedCollapsed) this.expandCollapseAnimationRunning = true;
this.animationCollapsed.sync(!val);
}
public get renderedCollapsed(): boolean {
Expand Down

0 comments on commit 9462ee0

Please sign in to comment.