{"action":"created","issue":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/11477","repository_url":"https://api.github.com/repos/zurb/foundation-sites","labels_url":"https://api.github.com/repos/zurb/foundation-sites/issues/11477/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation-sites/issues/11477/comments","events_url":"https://api.github.com/repos/zurb/foundation-sites/issues/11477/events","html_url":"https://github.com/zurb/foundation-sites/pull/11477","id":354131706,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwOTcyNjY3","number":11477,"title":"fix: return to initial state when reseting hash in Accordion & Tabs #11100","user":{"login":"ncoden","id":9939075,"node_id":"MDQ6VXNlcjk5MzkwNzU=","avatar_url":"https://avatars2.githubusercontent.com/u/9939075?v=4","gravatar_id":"","url":"https://api.github.com/users/ncoden","html_url":"https://github.com/ncoden","followers_url":"https://api.github.com/users/ncoden/followers","following_url":"https://api.github.com/users/ncoden/following{/other_user}","gists_url":"https://api.github.com/users/ncoden/gists{/gist_id}","starred_url":"https://api.github.com/users/ncoden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncoden/subscriptions","organizations_url":"https://api.github.com/users/ncoden/orgs","repos_url":"https://api.github.com/users/ncoden/repos","events_url":"https://api.github.com/users/ncoden/events{/privacy}","received_events_url":"https://api.github.com/users/ncoden/received_events","type":"User","site_admin":false},"labels":[{"id":425264014,"node_id":"MDU6TGFiZWw0MjUyNjQwMTQ=","url":"https://api.github.com/repos/zurb/foundation-sites/labels/Accordion","name":"Accordion","color":"1197eb","default":false},{"id":425264413,"node_id":"MDU6TGFiZWw0MjUyNjQ0MTM=","url":"https://api.github.com/repos/zurb/foundation-sites/labels/Tabs","name":"Tabs","color":"1197eb","default":false},{"id":501771078,"node_id":"MDU6TGFiZWw1MDE3NzEwNzg=","url":"https://api.github.com/repos/zurb/foundation-sites/labels/bug%20fix","name":"bug fix","color":"13c600","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-08-26T21:45:31Z","updated_at":"2018-09-10T20:38:55Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/zurb/foundation-sites/pulls/11477","html_url":"https://github.com/zurb/foundation-sites/pull/11477","diff_url":"https://github.com/zurb/foundation-sites/pull/11477.diff","patch_url":"https://github.com/zurb/foundation-sites/pull/11477.patch"},"body":"<!------------------------------------------------------------------------------\r\n                    Please fill the following template.\r\n            For more information, see the CONTRIBUTING.md document\r\n------------------------------------------------------------------------------->\r\n\r\n## Description\r\n<!-------------------------------------------------------------------\r\n│   Describe your changes in detail. Include any relevant information:\r\n│   reasons, difficulties, links to web references, related issues...\r\n└------------------------------------------------------------------->\r\n\r\nWhen deep-linking is enabled and the user goes back in the history up to when no hash is set, the active panel or tab does not change and is still the one that was selected the first.\r\n\r\nThis pull request make Accordion and Tabs displaying the panel or tab that was active at the component initialization.\r\n\r\n### Changes:\r\n- Save up the active panel/tab at Accordion/Tabs initialization (`_initialAnchor`)\r\n- Display the initial panel/tab when the hash change to `\"\"`.\r\n\r\n<!-------------------------------------------------------------------\r\n│   Bugs and new features/improvements must be presented and\r\n│   discussed in an issue first. Please create one if there is no issue\r\n│   related to this pull request. You can skip this step for minor changes.\r\n└------------------------------------------------------------------->\r\n- Closes https://github.com/zurb/foundation-sites/issues/11100\r\n- Replaces [#11101 - feat: add class for active tab when no hash is set in Tabs ](https://github.com/zurb/foundation-sites/issues/11101) (@jamiechong)\r\n\r\n## Types of changes\r\n<!-------------------------------------------------------------------\r\n│   What types of changes does your code introduce?\r\n│   Fill with [x] all the boxes that apply:\r\n└------------------------------------------------------------------->\r\n- [ ] Documentation\r\n- [x] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (anything that would change an existing functionality)\r\n- [ ] Maintenance (refactor, code cleaning, development tools...)\r\n\r\n\r\n## Checklist\r\n<!-------------------------------------------------------------------\r\n│   Please ensure that all the following points are respected.\r\n│   Fill with [x] the boxes once the rule is respected.\r\n└------------------------------------------------------------------->\r\n- [x] I have read and follow the CONTRIBUTING.md document.\r\n- [x] The pull request title and template are correctly filled.\r\n- [x] The pull request targets the right branch (`develop` or `develop-v...`).\r\n- [x] My commits are correctly titled and contain all relevant information.\r\n- ~~I have updated the documentation accordingly to my changes (if relevant).~~\r\n- ~~I have added tests to cover my changes (if relevant).~~\r\n\r\n\r\n<!------------------------------------------------------------------------------\r\n            For more information, see the CONTRIBUTING.md document         \r\n              Thank you for your pull request and happy coding ;)          \r\n------------------------------------------------------------------------------->\r\n"},"comment":{"url":"https://api.github.com/repos/zurb/foundation-sites/issues/comments/420052701","html_url":"https://github.com/zurb/foundation-sites/pull/11477#issuecomment-420052701","issue_url":"https://api.github.com/repos/zurb/foundation-sites/issues/11477","id":420052701,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDA1MjcwMQ==","user":{"login":"ncoden","id":9939075,"node_id":"MDQ6VXNlcjk5MzkwNzU=","avatar_url":"https://avatars2.githubusercontent.com/u/9939075?v=4","gravatar_id":"","url":"https://api.github.com/users/ncoden","html_url":"https://github.com/ncoden","followers_url":"https://api.github.com/users/ncoden/followers","following_url":"https://api.github.com/users/ncoden/following{/other_user}","gists_url":"https://api.github.com/users/ncoden/gists{/gist_id}","starred_url":"https://api.github.com/users/ncoden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncoden/subscriptions","organizations_url":"https://api.github.com/users/ncoden/orgs","repos_url":"https://api.github.com/users/ncoden/repos","events_url":"https://api.github.com/users/ncoden/events{/privacy}","received_events_url":"https://api.github.com/users/ncoden/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T20:38:55Z","updated_at":"2018-09-10T20:38:55Z","author_association":"MEMBER","body":"@SassNinja 👋 Could you test it again?"}}
{"actor":{"display_login":"ncoden"}}