-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError in IE11 #144
Comments
I am not able to reproduce the issue with the repo examples, could you create a small jsFiddle or use the repo yarn dev command to try to reproduce it? What is the thrown Syntax Error? |
Unfortunately syntax error is... "SyntaxError". It happens in playground.html, in the standalone version (I should have mentioned that, sorry). But it's also reproducible in a DocSearch implementation, e.g. on www.lightningdesignsystem.com |
Zepto's .is only support selectors, not dom nodes: http://zeptojs.com/#is DOMElement.contains() works on all browsers (IE5). fixes #144
Ok I have a fix see #149 |
I haven't tested in IE10 but it might occur there as well.
Steps to reproduce:
The issue comes from this code block: https://github.com/algolia/autocomplete.js/blob/4d5910a2a3f8677f1562754ed5cbe220abb0bea0/src/autocomplete/typeahead.js#L62
Workaround
This is a temporary fix I've applied in my branch - but this might break other versions of IE.
The text was updated successfully, but these errors were encountered: