Skip to content

Commit

Permalink
Collapsible: fix animation playing when setting opened to same value …
Browse files Browse the repository at this point in the history
…as current
  • Loading branch information
joshtynjala committed Aug 9, 2024
1 parent 67d9d0a commit 6309a67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/feathers/controls/Collapsible.hx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ class Collapsible extends FeathersControl implements IOpenCloseToggle {
if (this._pendingOpened != null && this._pendingOpened) {
return;
}
if (this._opened) {
return;
}
var result = FeathersEvent.dispatch(this, FeathersEvent.OPENING, false, true);
if (!result) {
return;
Expand All @@ -399,6 +402,9 @@ class Collapsible extends FeathersControl implements IOpenCloseToggle {
if (this._pendingOpened != null && !this._pendingOpened) {
return;
}
if (!this._opened) {
return;
}
var result = FeathersEvent.dispatch(this, FeathersEvent.CLOSING, false, true);
if (!result) {
return;
Expand Down

0 comments on commit 6309a67

Please sign in to comment.