2020-01-15 16:53:51 +03:00
|
|
|
|
|
|
|
<ul role="listbox" aria-controls="ember-power-select-trigger-{{@select.uniqueId}}" {{did-insert this.addHandlers}} ...attributes>
|
|
|
|
{{#if @select.loading}}
|
|
|
|
{{#if @loadingMessage}}
|
2023-01-04 12:39:32 +03:00
|
|
|
<li class="ember-power-select-option ember-power-select-option--loading-message" role="option" aria-selected="false" aria-disabled="true">{{@loadingMessage}}</li>
|
2020-01-15 16:53:51 +03:00
|
|
|
{{/if}}
|
2017-07-06 13:04:28 +03:00
|
|
|
{{/if}}
|
|
|
|
|
2020-05-18 00:35:53 +03:00
|
|
|
{{#vertical-collection @options minHeight=30 estimateHeight=6 bufferSize=10 as |opt index|}}
|
2020-01-15 16:53:51 +03:00
|
|
|
<li class="ember-power-select-option"
|
2020-05-18 00:35:53 +03:00
|
|
|
aria-selected="{{ember-power-select-is-selected opt @select.selected}}"
|
2020-01-15 16:53:51 +03:00
|
|
|
aria-disabled={{if opt.disabled "true"}}
|
|
|
|
aria-current="{{eq opt @select.highlighted}}"
|
|
|
|
data-option-index="{{@groupIndex}}{{index}}"
|
|
|
|
role="option">
|
|
|
|
{{yield opt @select}}
|
|
|
|
</li>
|
|
|
|
{{/vertical-collection}}
|
|
|
|
</ul>
|