Skip to content

Commit

Permalink
fix(Control): reorders which update methods are called first (#508)
Browse files Browse the repository at this point in the history
* fix(Control): reorders which update methods are called first

* fix(Control): adds title update before updating collapseStatus
  • Loading branch information
slhay28 committed May 9, 2024
1 parent 6815c3d commit d609442
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ export default class Control extends ButtonSmall {
_update() {
// ordering this way to make sure that this._Title is defined so the title visibility can be set properly when _updateCollapseStatus is called
this._updatePrefixStyle();
super._update();
super._updateTitle();
this._updateCollapseStatus();
super._update();
}

_updateCollapseStatus() {
Expand Down

0 comments on commit d609442

Please sign in to comment.