diff --git a/scripts/__snapshots__/e2e-templates.test.js.snap b/scripts/__snapshots__/e2e-templates.test.js.snap index 098bb8800..0bc0bd488 100644 --- a/scripts/__snapshots__/e2e-templates.test.js.snap +++ b/scripts/__snapshots__/e2e-templates.test.js.snap @@ -1196,8 +1196,6 @@ import autocomplete from 'autocomplete.js'; const client = algoliasearch('appId', 'apiKey'); const index = client.initIndex('indexName'); -const $hits = document.querySelector('#hits'); - autocomplete('#searchBox input[type=search]', { hint: false }, [ { source: autocomplete.sources.hits(index, { hitsPerPage: 5 }), diff --git a/src/templates/Autocomplete.js/src/app.js.hbs b/src/templates/Autocomplete.js/src/app.js.hbs index 619f13153..6e9c57ca7 100644 --- a/src/templates/Autocomplete.js/src/app.js.hbs +++ b/src/templates/Autocomplete.js/src/app.js.hbs @@ -4,8 +4,6 @@ import autocomplete from 'autocomplete.js'; const client = algoliasearch('{{appId}}', '{{apiKey}}'); const index = client.initIndex('{{indexName}}'); -const $hits = document.querySelector('#hits'); - autocomplete('#searchBox input[type=search]', { hint: false }, [ { source: autocomplete.sources.hits(index, { hitsPerPage: 5 }),