FIX: ensures tags-admin-dropdown is working correctly with sk2 (#8852)

This commit is contained in:
Joffrey JAFFEUX 2020-02-04 19:23:44 +01:00 committed by GitHub
parent 35a1912e2d
commit 2c2ab474a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import { computed } from "@ember/object";
export default DropdownSelectBoxComponent.extend({ export default DropdownSelectBoxComponent.extend({
pluginApiIdentifiers: ["tags-admin-dropdown"], pluginApiIdentifiers: ["tags-admin-dropdown"],
classNames: "tags-admin-dropdown", classNames: ["tags-admin-dropdown"],
actionsMapping: null, actionsMapping: null,
selectKitOptions: { selectKitOptions: {
@ -35,7 +35,7 @@ export default DropdownSelectBoxComponent.extend({
}), }),
actions: { actions: {
onSelect(id) { onChange(id) {
const action = this.actionsMapping[id]; const action = this.actionsMapping[id];
if (action) { if (action) {

View File

@ -1,6 +1,4 @@
{{#if selectKit.options.icon}} {{#each icons as |icon|}} {{d-icon icon}} {{/each}}
{{d-icon selectKit.options.icon}}
{{/if}}
{{component selectKit.options.selectedNameComponent {{component selectKit.options.selectedNameComponent
tabindex=tabindex tabindex=tabindex