Ghost/ghost/admin/app/components/gh-basic-dropdown.js
Gabriel Csapo d51f2bcf23 [chore] migrate to eslint@8 and run --fix (#2256)
closes https://github.com/TryGhost/Admin/pull/2107

- updated related babel dependencies
- bumped eslint
- ran `yarn lint:js --fix`
- added eslint ignore comments for some required non-camel-case properties
2022-02-10 10:41:36 +00:00

18 lines
421 B
JavaScript

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;