1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/components/gh-basic-dropdown.js

18 lines
420 B
JavaScript
Raw Normal View History

import BasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';
import {inject as service} from '@ember/service';
class GhBasicDropdown extends BasicDropdown {
@service dropdown
constructor() {
super(...arguments);
this.dropdown.on('close', this, this.close);
}
willDestroy() {
this.dropdown.off('close', this, this.close);
}
}
export default GhBasicDropdown;