Ghost/ghost/admin/app/components/gh-basic-dropdown.js
Kevin Ansfield 7c7c4962f9 Upgraded ember-power-* addons (#1459)
no issue

- bump deps
- adjust usage for breaking changes... 
  - https://github.com/cibernox/ember-power-select/blob/master/CHANGELOG.md#300-beta1
  - https://github.com/cibernox/ember-basic-dropdown/blob/master/CHANGELOG.md#200-beta3
  - https://github.com/cibernox/ember-power-datepicker/blob/master/CHANGELOG.md#070
- update overridden component and template files to match latest addon code
  - switch to class syntax w/decorators
  - adjust for angle bracket syntax
2020-01-15 13:53:51 +00:00

21 lines
597 B
JavaScript

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