{{#sortable-objects tagName="ul" id=(concat "ember-power-select-multiple-options-" select.uniqueId) class="ember-power-select-multiple-options" sortableObjectList=select.selected enableSort=true useSwap=false sortEndAction=(action "reorderItems") }} {{#each select.selected as |opt idx|}} {{#component (or this.extra.tokenComponent "draggable-object") tagName="li" class="ember-power-select-multiple-option" select=select content=(readonly opt) idx=idx isSortable=true mouseDown=(action "handleOptionMouseDown") touchStart=(action "handleOptionTouchStart") }} {{#if this.selectedItemComponent}} {{component this.selectedItemComponent option=(readonly opt) select=(readonly select)}} {{else}} {{yield opt select}} {{/if}} {{#unless select.disabled}} {{svg-jar "close" data-selected-index=idx}} {{/unless}} {{/component}} {{else}} {{#if (and placeholder (not this.searchEnabled))}} {{placeholder}} {{/if}} {{/each}} {{#if this.searchEnabled}} {{/if}} {{/sortable-objects}}