mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
63b1e4e8ad
no issue - in many places we were passing a string as an argument to a `<PowerSelect>` related component that referred to a component name, that was throwing deprecation warnings because those strings were used dynamically with `{{component}}` later on which isn't statically analyzable - switched to passing a component explicitly with `{{component}}` - https://github.com/embroider-build/embroider/blob/main/REPLACING-COMPONENT-HELPER.md#when-youre-passing-a-component-to-someone-else
23 lines
775 B
Handlebars
23 lines
775 B
Handlebars
<div ...attributes>
|
|
<div class="ember-power-select-search">
|
|
<PowerSelect
|
|
@search={{perform this.searchTask}}
|
|
@onChange={{this.openSelected}}
|
|
@onClose={{this.onClose}}
|
|
@placeholder="Search site"
|
|
@searchEnabled={{false}}
|
|
@triggerComponent={{component "gh-input-with-select/trigger"}}
|
|
@renderInPlace={{true}}
|
|
@loadingMessage="Loading"
|
|
@extra={{hash
|
|
autofocus=true
|
|
inputType="search"
|
|
inputIcon="search"
|
|
inputIconClass="gh-nav-search-icon"
|
|
}}
|
|
as |name select|
|
|
>
|
|
{{highlighted-text name.title select.searchText}}
|
|
</PowerSelect>
|
|
</div>
|
|
</div> |