mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
654d373655
* Update dependency ember-power-select to v4 * Fixed trigger component override collision when building - move the "override" into our own namespace - update all `<PowerSelect>` usage to explicitly reference our customised trigger component * Bumped ember-power-datepicker - bumps `ember-basic-dropdown` sub-dependency - resolves "Error: Could not find module `ember-compatibility-helpers` imported from `@glimmer/component/index`" - https://github.com/cibernox/ember-basic-dropdown/issues/551 * Updated trigger to use class syntax - it's not possible to use `.extend()` on an imported class * Updated <GhBasicDropdown> - match updated ember-basic-dropdown code * Added `autofocus` modifier - added `ember-modifier` dependency so that we can create our own render modifiers * Updated <GhSearchInputTrigger> to a glimmer component * Updated gh-token-input components * Fixed tests - wrap `<PowerSelect>` with `<div>` to maintain test selectors - fixed `<GhBasicDropdown>` not rendering anything due to not having a local template Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Kevin Ansfield <kevin@lookingsideways.co.uk>
21 lines
568 B
JavaScript
21 lines
568 B
JavaScript
import BasicDropdown from 'ember-basic-dropdown/components/basic-dropdown';
|
|
import templateLayout from '../templates/components/gh-basic-dropdown';
|
|
import {layout} from '@ember-decorators/component';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
@layout(templateLayout)
|
|
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;
|