Skip to content

Commit

Permalink
Add public API to control active status
Browse files Browse the repository at this point in the history
This is a hack to allow me to deactivate the control when it has
been closed with the escape key.
  • Loading branch information
backspace committed Jun 23, 2020
1 parent b5d68ee commit 6846232
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/components/power-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export default @tagName('') @layout(templateLayout) class PowerSelect extends Co
highlight: this._highlight,
select: this._select,
choose: this._choose,
scrollTo: this._scrollTo
scrollTo: this._scrollTo,
setIsActive: this.setIsActive.bind(this),
}
assert('<PowerSelect> requires an `@onChange` function', this.onChange && typeof this.onChange === 'function');
}
Expand Down

0 comments on commit 6846232

Please sign in to comment.