Skip to content

Commit

Permalink
Allow keyboard accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pkong-ds committed May 30, 2024
1 parent 610b656 commit 4f6c24c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/scripts/home.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const NUM_DEFAULT_MODEL_ITEMS_TO_DISPLAY = 7;
const NUM_DEFAULT_BRAND_ITEMS_TO_DISPLAY = 1;
const NUM_DEFAULT_MODEL_ITEMS_TO_DISPLAY = 0;
const NUM_DEFAULT_BRAND_ITEMS_TO_DISPLAY = 0;

function ready(fn) {
if (document.readyState != "loading") {
Expand Down Expand Up @@ -66,6 +66,9 @@ function initializeAutocomplete(viewModel) {
>`;
},
},
getItemUrl({ item }) {
return `${window.location.origin}${item.pathname}`;
},
},
{
sourceId: "brands",
Expand All @@ -86,6 +89,9 @@ function initializeAutocomplete(viewModel) {
>`;
},
},
getItemUrl({ item }) {
return `${window.location.origin}${item.pathname}`;
},
},
];
},
Expand Down

0 comments on commit 4f6c24c

Please sign in to comment.