FIX: fires onExpand/onCollapse when using arrows

This commit is contained in:
Joffrey JAFFEUX
2018-03-22 18:35:46 +01:00
committed by GitHub
parent 841e2ba723
commit cbbeedf53b
3 changed files with 5 additions and 5 deletions

View File

@ -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();
}
},