{"action":"created","issue":{"url":"https://api.github.com/repos/SpringRoll/SpringRollContainer/issues/1","labels_url":"https://api.github.com/repos/SpringRoll/SpringRollContainer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SpringRoll/SpringRollContainer/issues/1/comments","events_url":"https://api.github.com/repos/SpringRoll/SpringRollContainer/issues/1/events","html_url":"https://github.com/SpringRoll/SpringRollContainer/issues/1","id":122119470,"number":1,"title":"Anchor tags do not function on page once a new Container is created.","user":{"login":"probityrules","id":1324745,"avatar_url":"https://avatars.githubusercontent.com/u/1324745?v=3","gravatar_id":"","url":"https://api.github.com/users/probityrules","html_url":"https://github.com/probityrules","followers_url":"https://api.github.com/users/probityrules/followers","following_url":"https://api.github.com/users/probityrules/following{/other_user}","gists_url":"https://api.github.com/users/probityrules/gists{/gist_id}","starred_url":"https://api.github.com/users/probityrules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probityrules/subscriptions","organizations_url":"https://api.github.com/users/probityrules/orgs","repos_url":"https://api.github.com/users/probityrules/repos","events_url":"https://api.github.com/users/probityrules/events{/privacy}","received_events_url":"https://api.github.com/users/probityrules/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-14T20:03:20Z","updated_at":"2015-12-15T01:06:29Z","closed_at":null,"body":"Anchor tags no longer work once a Container is created. It seems that the Container is somehow interrupting the \"click\" event handling on `<a href=\"\">` tags. This isn't happening on all iOS / browser combinations, but has been found to consistently occur on the following combos:\r\n\r\n* Safari and Chrome on iPad Mini iOS 8.3\r\n* Safari on iPhone 5s iOS 9.2\r\n* Safari on iPhone 6 iOS 9\r\n* Chrome on iPad Mini iOS 9.0\r\n\r\nThe issue can be tested on the Dinosaur Train home page on Ernie. (Soup's home page bypasses the SR Container using a regular iframe and does not exhibit the issue.) Let the page load (phones need to be in horizontal orientation so the train loads), and then tap any of the navigation buttons or the header logos. Note that the element is selected, but the link is not followed on release."},"comment":{"url":"https://api.github.com/repos/SpringRoll/SpringRollContainer/issues/comments/164609128","html_url":"https://github.com/SpringRoll/SpringRollContainer/issues/1#issuecomment-164609128","issue_url":"https://api.github.com/repos/SpringRoll/SpringRollContainer/issues/1","id":164609128,"user":{"login":"bigtimebuddy","id":864393,"avatar_url":"https://avatars.githubusercontent.com/u/864393?v=3","gravatar_id":"","url":"https://api.github.com/users/bigtimebuddy","html_url":"https://github.com/bigtimebuddy","followers_url":"https://api.github.com/users/bigtimebuddy/followers","following_url":"https://api.github.com/users/bigtimebuddy/following{/other_user}","gists_url":"https://api.github.com/users/bigtimebuddy/gists{/gist_id}","starred_url":"https://api.github.com/users/bigtimebuddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigtimebuddy/subscriptions","organizations_url":"https://api.github.com/users/bigtimebuddy/orgs","repos_url":"https://api.github.com/users/bigtimebuddy/repos","events_url":"https://api.github.com/users/bigtimebuddy/events{/privacy}","received_events_url":"https://api.github.com/users/bigtimebuddy/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T01:06:29Z","updated_at":"2015-12-15T01:06:29Z","body":"Yup, this is [the offending code](https://github.com/SpringRoll/SpringRollContainer/blob/master/src/container/plugins/FocusPlugin.js#L155-L175). A listener is added to document click and focus events to automatically keep focus on the iframe contents (as to not lose keyboard or interactive focus). Right now, this is an opt-out functionality. If you some DOM element that you don't want to trigger an auto-focus to the iframe, you can add the class `pause-on-focus`. I don't believe this is the best approach and auto-focus should probably be opt-in or at least not return `false`. Overall, the Container focus could be overhauled and improved. Welcome your thoughts @probityrules, or if you want to take a pass at the FocusPlugin."}}