From 6846232f09e9b42d435162134e9055028e0cff8b Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Tue, 23 Jun 2020 10:55:31 -0500 Subject: [PATCH] Add public API to control active status This is a hack to allow me to deactivate the control when it has been closed with the escape key. --- addon/components/power-select.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addon/components/power-select.js b/addon/components/power-select.js index 2df1aecf0..654ed86a5 100644 --- a/addon/components/power-select.js +++ b/addon/components/power-select.js @@ -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(' requires an `@onChange` function', this.onChange && typeof this.onChange === 'function'); }