2017-04-05 17:26:01 +03:00
|
|
|
import BasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';
|
2017-10-30 12:38:01 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2017-04-05 17:26:01 +03:00
|
|
|
|
2020-01-15 16:53:51 +03:00
|
|
|
class GhBasicDropdown extends BasicDropdown {
|
2022-02-10 13:41:36 +03:00
|
|
|
@service dropdown;
|
2017-04-05 17:26:01 +03:00
|
|
|
|
2020-05-18 00:35:53 +03:00
|
|
|
constructor() {
|
|
|
|
super(...arguments);
|
2019-03-06 16:53:54 +03:00
|
|
|
this.dropdown.on('close', this, this.close);
|
2020-01-15 16:53:51 +03:00
|
|
|
}
|
2017-04-05 17:26:01 +03:00
|
|
|
|
2020-01-15 16:53:51 +03:00
|
|
|
willDestroy() {
|
2019-05-06 17:00:06 +03:00
|
|
|
this.dropdown.off('close', this, this.close);
|
2017-04-05 17:26:01 +03:00
|
|
|
}
|
2020-01-15 16:53:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
export default GhBasicDropdown;
|