From 8a30be36e12f086f71025a71fefd650f4b0a954c Mon Sep 17 00:00:00 2001 From: Samuel Vaillant Date: Fri, 28 Sep 2018 17:16:33 +0200 Subject: [PATCH] fix(InstantSearch): disable autofocus --- scripts/__snapshots__/e2e-templates.test.js.snap | 1 + src/templates/InstantSearch.js/src/app.js.hbs | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/__snapshots__/e2e-templates.test.js.snap b/scripts/__snapshots__/e2e-templates.test.js.snap index a7d79505c..3f86a09dc 100644 --- a/scripts/__snapshots__/e2e-templates.test.js.snap +++ b/scripts/__snapshots__/e2e-templates.test.js.snap @@ -2912,6 +2912,7 @@ const search = instantsearch({ search.addWidget( instantsearch.widgets.searchBox({ container: '#searchbox', + autofocus: false, placeholder: 'Search placeholder', }) ); diff --git a/src/templates/InstantSearch.js/src/app.js.hbs b/src/templates/InstantSearch.js/src/app.js.hbs index 3ee3f8802..e39dc618e 100644 --- a/src/templates/InstantSearch.js/src/app.js.hbs +++ b/src/templates/InstantSearch.js/src/app.js.hbs @@ -9,6 +9,7 @@ const search = instantsearch({ search.addWidget( instantsearch.widgets.searchBox({ container: '#searchbox', + autofocus: false, {{#if searchPlaceholder}} placeholder: '{{searchPlaceholder}}', {{/if}}