{"action":"closed","issue":{"url":"https://api.github.com/repos/techlab/SmartWizard/issues/14","repository_url":"https://api.github.com/repos/techlab/SmartWizard","labels_url":"https://api.github.com/repos/techlab/SmartWizard/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/techlab/SmartWizard/issues/14/comments","events_url":"https://api.github.com/repos/techlab/SmartWizard/issues/14/events","html_url":"https://github.com/techlab/SmartWizard/issues/14","id":191502672,"number":14,"title":"useUrlHash issue with jQuery selector","user":{"login":"b-e","id":4305004,"avatar_url":"https://avatars.githubusercontent.com/u/4305004?v=3","gravatar_id":"","url":"https://api.github.com/users/b-e","html_url":"https://github.com/b-e","followers_url":"https://api.github.com/users/b-e/followers","following_url":"https://api.github.com/users/b-e/following{/other_user}","gists_url":"https://api.github.com/users/b-e/gists{/gist_id}","starred_url":"https://api.github.com/users/b-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-e/subscriptions","organizations_url":"https://api.github.com/users/b-e/orgs","repos_url":"https://api.github.com/users/b-e/repos","events_url":"https://api.github.com/users/b-e/events{/privacy}","received_events_url":"https://api.github.com/users/b-e/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-24T11:58:18Z","updated_at":"2016-12-08T17:04:42Z","closed_at":"2016-12-08T17:04:41Z","body":"Hey guys,\r\nawesome project. \r\nWhen I integrated it in a website, I did find an issue. With the useURLhash and backButtonSupport set to true, I was getting this error:\r\n`Uncaught Error: Syntax error, unrecognized expression: a[href*=#step-personal-data]`\r\ntriggered by Sizzle. I'm using jQuery 2.x and SmartWizard 4.0.5\r\n\r\nTurned out that the issue is related to 2 very similar lines of code in SmartWizard:\r\n`var elm = $(\"a[href*=\"+hash+\"]\");` and\r\n`var elm = $(\"a[href*=\"+window.location.hash+\"]\");`\r\n\r\nI got it working by encapsulating the hash string into quotes, as per jQuery syntax:\r\n`var elm = $(\"a[href*='\"+hash+\"']\");` \r\n\r\nI forked the repo here [https://github.com/b-e/SmartWizard/blob/master/js/jquery.smartWizard.js](url), and can open a PR"}}
{"actor":{"display_login":"techlab"}}