We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fd72e7 commit 77ec916Copy full SHA for 77ec916
view/frontend/web/js/autocomplete.js
@@ -80,11 +80,7 @@ define([
80
81
this.addFooter();
82
83
- if (algoliaConfig.autocomplete.isNavigatorEnabled) {
84
- $('body').append(
85
- '<style>.aa-Item[aria-selected="true"]{background-color: #f2f2f2;}</style>'
86
- );
87
- }
+ this.addKeyboardNavigation();
88
},
89
90
getSearchClient() {
@@ -850,6 +846,14 @@ define([
850
846
$('.aa-Panel').addClass('productColumn1');
851
847
}
852
848
849
+ },
+
+ addKeyboardNavigation() {
+ if (algoliaConfig.autocomplete.isNavigatorEnabled) {
853
+ $('body').append(
854
+ '<style>.aa-Item[aria-selected="true"]{background-color: #f2f2f2;}</style>'
855
+ );
856
+ }
857
858
});
859
0 commit comments