Skip to content
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

Raise unrecognized expression error when using in single web app #19

Open
jkevintu opened this issue Oct 10, 2018 · 0 comments
Open

Raise unrecognized expression error when using in single web app #19

jkevintu opened this issue Oct 10, 2018 · 0 comments

Comments

@jkevintu
Copy link

jkevintu commented Oct 10, 2018

Issue

A lot of the single web app use /#/ as there route manager and control their pages, however, right now the plugin will takes the window.location.hash as value and try to replace anchor tag #, so it will try to get hash like this #/index and transfer into this /index. this is causing the issue since the / is not removed, jquery can not select element properly and raise systax error.

vendor.js:1472 Uncaught Error: Syntax error, unrecognized expression: #/index.carrousel__content
    at Function.Sizzle.error (vendor.js:1472)
    at tokenize (vendor.js:2086)
    ...

Suggestion

Use another way to process the hash value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant