mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 11:36:01 +08:00
FIX: fires onExpand/onCollapse when using arrows
This commit is contained in:
@ -359,10 +359,8 @@ export default Ember.Component.extend(UtilsMixin, PluginApiMixin, DomHelpersMixi
|
||||
this.clearHighlightSelection();
|
||||
|
||||
if (this.get("isExpanded")) {
|
||||
this._boundaryActionHandler("onCollapse", this);
|
||||
this.collapse();
|
||||
} else {
|
||||
this._boundaryActionHandler("onExpand", this);
|
||||
this.expand();
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user