I’m experiencing an unwanted behaviour with the use of algolia instantSearch.
I’m using it on E-shop website, and as mentionned in the title, when i load a page or refresh one, and begin scrolling down before the page is totally loaded, it jump back at top of screen.
First i thought it was a browser behaviour, but it’s not (at least, not in my case)
So i’ve search in the event listeners with Chrome dev tools, and it appears that it is due to ‘search-box.js’, giving focus to the input (i disabled algolia for testing, and the page does not jump anymore)
What i did not understand is how to override this parameter ? ‘search-box.js’ is packed (via webpack).
i have access to ‘algoliaBundle.instantsearch.widgets.searchBox’ (which is a function), but don’t know how to edit the parameter autofocus…
i’m using magento 1.x, and the website is https://www.carreblanc.com/linge-de-lit/housses-de-couette.html
Thanks for your help