136
136
(click) ="close($any($event), true) "
137
137
role ="listbox "
138
138
[class.no-headers] ="
139
- !isEnabledFeature(searchBoxFeatures.RECENT_SEARCHES_FEATURE) &&
140
139
!isEnabledFeature(searchBoxFeatures.TRENDING_SEARCHES_FEATURE) &&
141
140
!isEnabledFeature(searchBoxFeatures.SEARCH_BOX_V2)
142
141
"
@@ -157,7 +156,6 @@ <h3 *ngIf="result.message" [innerHTML]="result.message"></h3>
157
156
>
158
157
< ng-container
159
158
*ngIf ="
160
- isEnabledFeature(searchBoxFeatures.RECENT_SEARCHES_FEATURE) ||
161
159
isEnabledFeature(searchBoxFeatures.TRENDING_SEARCHES_FEATURE) ||
162
160
isEnabledFeature(searchBoxFeatures.SEARCH_BOX_V2)
163
161
"
171
169
attr.aria-label ="{{ 'searchBox.ariaLabelSuggestions' | cxTranslate }} "
172
170
role ="listbox "
173
171
[class.no-headers] ="
174
- !isEnabledFeature(searchBoxFeatures.RECENT_SEARCHES_FEATURE) &&
175
172
!isEnabledFeature(searchBoxFeatures.TRENDING_SEARCHES_FEATURE) &&
176
173
!isEnabledFeature(searchBoxFeatures.SEARCH_BOX_V2)
177
174
"
@@ -228,23 +225,19 @@ <h3>
228
225
</ div >
229
226
230
227
<!-- RECENT SEARCHES-->
231
- < ng-container *cxFeature ="searchBoxFeatures.RECENT_SEARCHES_FEATURE ">
232
- < ng-template
233
- *ngIf ="config.recentSearches "
234
- [cxOutlet] ="searchBoxOutlets.RECENT_SEARCHES "
235
- [cxOutletContext] ="{
236
- search: searchInputEl?.nativeElement?.value ?? '',
237
- searchBoxActive: searchBoxActive,
238
- maxRecentSearches: config.maxRecentSearches,
239
- } "
240
- > </ ng-template >
241
- </ ng-container >
242
-
228
+ < ng-template
229
+ *ngIf ="config.recentSearches "
230
+ [cxOutlet] ="searchBoxOutlets.RECENT_SEARCHES "
231
+ [cxOutletContext] ="{
232
+ search: searchInputEl?.nativeElement?.value ?? '',
233
+ searchBoxActive: searchBoxActive,
234
+ maxRecentSearches: config.maxRecentSearches,
235
+ } "
236
+ > </ ng-template >
243
237
<!--RESULT PRODUCTS-->
244
238
< div class ="products ">
245
239
< ng-container
246
240
*ngIf ="
247
- isEnabledFeature(searchBoxFeatures.RECENT_SEARCHES_FEATURE) ||
248
241
isEnabledFeature(searchBoxFeatures.TRENDING_SEARCHES_FEATURE) ||
249
242
isEnabledFeature(searchBoxFeatures.SEARCH_BOX_V2)
250
243
"
0 commit comments