FIX: Move the `search-menu-results-top` plugin outlet (#24774)
The `search-menu-results-top` plugin outlet was not positioned at the top of `results` as expected. Additionally, the expected outlet arguments that existed in the "widget implementation" were not available on the glimmer search menu.
This commit is contained in:
parent
ddf3c571cf
commit
bf48e14687
|
@ -2,6 +2,15 @@
|
|||
<SearchMenu::BrowserSearchTip />
|
||||
{{else}}
|
||||
<div class="results">
|
||||
<PluginOutlet
|
||||
@name="search-menu-results-top"
|
||||
@outletArgs={{hash
|
||||
closeSearchMenu=@closeSearchMenu
|
||||
searchTerm=this.search.activeGlobalSearchTerm
|
||||
inTopicContext=this.search.inTopicContext
|
||||
searchTopics=@searchTopics
|
||||
}}
|
||||
/>
|
||||
{{#if @suggestionKeyword}}
|
||||
<SearchMenu::Results::Assistant
|
||||
@suggestionKeyword={{@suggestionKeyword}}
|
||||
|
@ -27,11 +36,6 @@
|
|||
/>
|
||||
{{/if}}
|
||||
|
||||
<PluginOutlet
|
||||
@name="search-menu-results-top"
|
||||
@outletArgs={{hash closeSearchMenu=@closeSearchMenu}}
|
||||
/>
|
||||
|
||||
{{#if (and @searchTopics this.resultTypesWithComponent)}}
|
||||
{{! render results after a search has been performed }}
|
||||
<SearchMenu::Results::Types
|
||||
|
|
Loading…
Reference in New Issue