2020-01-15 16:53:51 +03:00
|
|
|
{{#if @select.selected}}
|
|
|
|
{{#if @selectedItemComponent}}
|
|
|
|
{{component @selectedItemComponent extra=(readonly @extra) option=(readonly @option.selected) select=(readonly @select)}}
|
2017-04-10 12:53:27 +03:00
|
|
|
{{else}}
|
2022-02-02 20:09:02 +03:00
|
|
|
<span class="ember-power-select-selected-item">{{yield @select.selected this.select}}</span>
|
2017-04-10 12:53:27 +03:00
|
|
|
{{/if}}
|
2020-01-15 16:53:51 +03:00
|
|
|
{{#if (and @allowClear (not @select.disabled))}}
|
|
|
|
<span class="ember-power-select-clear-btn" {{on "mousedown" this.clear}} {{on "touchstart" this.clear}}>×</span>
|
2017-04-10 12:53:27 +03:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2020-01-15 16:53:51 +03:00
|
|
|
{{component @placeholderComponent placeholder=@placeholder}}
|
2017-04-10 12:53:27 +03:00
|
|
|
{{/if}}
|
2020-01-15 16:53:51 +03:00
|
|
|
{{!-- this next line is the only difference from original trigger.hbs --}}
|
2018-03-19 12:57:31 +03:00
|
|
|
{{svg-jar "arrow-down-small"}}
|