I’ve seen a couple of topics here related to the problem of not showing any search result with IE11.
IE11 does show the result after the search but when the screen is refreshed or its bookmark is accessed, it shows no result. This only happens when the price range filter is applied.
You can test here with your IE11 at the Algolia ikea demo page:
This shows an error in IE console:
SCRIPT438: Object doesn’t support property or method ‘includes’
instantsearch.js uses the “includes” method which IE11 doesn’t define. Algolia recommends “If you want support for IE11, we suggest you use polyfill.io.” so, I added this line:
But, this didn’t solve the problem and then realized that the “includes” error was for Array, not String! The default polyfill.js has String.includes but not Array.includes. The final solution was to add this line, instead:
It took awhile to get here but its an elegant solution. My client has more than 10% of IE11 users and we can’t ignore them. I’m sure others feel the same so this is my contribution for the Algolia community. I hope Algolia fixes the demo to support IE11.