{"action":"created","issue":{"url":"https://api.github.com/repos/tleunen/react-mdl/issues/265","repository_url":"https://api.github.com/repos/tleunen/react-mdl","labels_url":"https://api.github.com/repos/tleunen/react-mdl/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/tleunen/react-mdl/issues/265/comments","events_url":"https://api.github.com/repos/tleunen/react-mdl/issues/265/events","html_url":"https://github.com/tleunen/react-mdl/issues/265","id":142843233,"number":265,"title":"BUG: get error when using HeaderTabs component","user":{"login":"Chun-Yang","id":2827867,"avatar_url":"https://avatars.githubusercontent.com/u/2827867?v=3","gravatar_id":"","url":"https://api.github.com/users/Chun-Yang","html_url":"https://github.com/Chun-Yang","followers_url":"https://api.github.com/users/Chun-Yang/followers","following_url":"https://api.github.com/users/Chun-Yang/following{/other_user}","gists_url":"https://api.github.com/users/Chun-Yang/gists{/gist_id}","starred_url":"https://api.github.com/users/Chun-Yang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chun-Yang/subscriptions","organizations_url":"https://api.github.com/users/Chun-Yang/orgs","repos_url":"https://api.github.com/users/Chun-Yang/repos","events_url":"https://api.github.com/users/Chun-Yang/events{/privacy}","received_events_url":"https://api.github.com/users/Chun-Yang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-03-23T02:46:51Z","updated_at":"2016-08-17T14:09:13Z","closed_at":"2016-03-23T03:05:13Z","body":"First, Thanks for your awesome project!\r\n\r\nHere is the bug:\r\nWhen I use the HeaderTabs component and try to click one of the tab, I get the error:\r\n```\r\nTypeError: Cannot read property 'charAt' of null\r\n```\r\n\r\nIt is in line 3575 of the material.js file\r\n```\r\n    tab.addEventListener('click', function (e) {\r\n        if (tab.getAttribute('href').charAt(0) === '#') {  // <=== line 3575\r\n            e.preventDefault();\r\n            selectTab();\r\n        }\r\n    });\r\n```\r\nFYI, I copied the materiali.js file from your repo https://github.com/tleunen/react-mdl/blob/master/extra/material.js\r\n\r\nAfter I comment this event listener, the bug disappeared.\r\n\r\nDo you think it is a good idea to remove these lines? Or there are some other ways to fix this?\r\n\r\nAgain, thanks for your awesome project!"},"comment":{"url":"https://api.github.com/repos/tleunen/react-mdl/issues/comments/240422576","html_url":"https://github.com/tleunen/react-mdl/issues/265#issuecomment-240422576","issue_url":"https://api.github.com/repos/tleunen/react-mdl/issues/265","id":240422576,"user":{"login":"raphaguasta","id":6708227,"avatar_url":"https://avatars.githubusercontent.com/u/6708227?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaguasta","html_url":"https://github.com/raphaguasta","followers_url":"https://api.github.com/users/raphaguasta/followers","following_url":"https://api.github.com/users/raphaguasta/following{/other_user}","gists_url":"https://api.github.com/users/raphaguasta/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaguasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaguasta/subscriptions","organizations_url":"https://api.github.com/users/raphaguasta/orgs","repos_url":"https://api.github.com/users/raphaguasta/repos","events_url":"https://api.github.com/users/raphaguasta/events{/privacy}","received_events_url":"https://api.github.com/users/raphaguasta/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T14:09:13Z","updated_at":"2016-08-17T14:09:13Z","body":"Hello guys! I'm using version 1.6.1, but the error still is thrown. Do you have any solution for this problem?"}}
{"actor":{"display_login":"raphaguasta"}}