{"action":"created","issue":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/1386","repository_url":"https://api.github.com/repos/Dogfalo/materialize","labels_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1386/labels{/name}","comments_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1386/comments","events_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1386/events","html_url":"https://github.com/Dogfalo/materialize/issues/1386","id":78541745,"number":1386,"title":"tooltop.js problem when another tooltip is initialize","user":{"login":"itsmechlark","id":5423610,"avatar_url":"https://avatars.githubusercontent.com/u/5423610?v=3","gravatar_id":"","url":"https://api.github.com/users/itsmechlark","html_url":"https://github.com/itsmechlark","followers_url":"https://api.github.com/users/itsmechlark/followers","following_url":"https://api.github.com/users/itsmechlark/following{/other_user}","gists_url":"https://api.github.com/users/itsmechlark/gists{/gist_id}","starred_url":"https://api.github.com/users/itsmechlark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsmechlark/subscriptions","organizations_url":"https://api.github.com/users/itsmechlark/orgs","repos_url":"https://api.github.com/users/itsmechlark/repos","events_url":"https://api.github.com/users/itsmechlark/events{/privacy}","received_events_url":"https://api.github.com/users/itsmechlark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-20T14:11:57Z","updated_at":"2016-05-03T10:56:59Z","closed_at":null,"body":"This happen when another tooltip is setup after the previous tooltip is setup.\r\n\r\nProblem at [tooltip.js#L16](https://github.com/Dogfalo/materialize/blob/ce5e0ba9f0ac2e32e0f2d9f8859928af32c6b0dd/js/tooltip.js#L16)\r\n\r\nThe previous container of the tooltip is remove after the second tooltip is setup.\r\n```html\r\n<a id=\"tp1\" class=\"btn tooltipped col s4 offset-s4 l2 offset-l1\" data-position=\"bottom\" data-delay=\"50\" data-tooltip=\"I'm TP1!\">TP1</a>\r\n<a id=\"tp2\" class=\"btn tooltipped col s4 offset-s4 l2 offset-l1\" data-position=\"bottom\" data-delay=\"50\" data-tooltip=\"Goodbye TP1!\">TP2</a>\r\n<script>\r\n$(document).on(\"click\", \"#tp1\", function(){\r\n    if (!$(\"#tp2\").is(\".ok\")){\r\n        $(\"#tp2\").addClass(\"ok\").tooltip();\r\n    };\r\n});\r\n$(\"#tp1\").tooltip();\r\n</script>\r\n```\r\nCheck this https://jsfiddle.net/8wxa2pym/"},"comment":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/comments/216494873","html_url":"https://github.com/Dogfalo/materialize/issues/1386#issuecomment-216494873","issue_url":"https://api.github.com/repos/Dogfalo/materialize/issues/1386","id":216494873,"user":{"login":"merlano17","id":4918935,"avatar_url":"https://avatars.githubusercontent.com/u/4918935?v=3","gravatar_id":"","url":"https://api.github.com/users/merlano17","html_url":"https://github.com/merlano17","followers_url":"https://api.github.com/users/merlano17/followers","following_url":"https://api.github.com/users/merlano17/following{/other_user}","gists_url":"https://api.github.com/users/merlano17/gists{/gist_id}","starred_url":"https://api.github.com/users/merlano17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merlano17/subscriptions","organizations_url":"https://api.github.com/users/merlano17/orgs","repos_url":"https://api.github.com/users/merlano17/repos","events_url":"https://api.github.com/users/merlano17/events{/privacy}","received_events_url":"https://api.github.com/users/merlano17/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T10:56:59Z","updated_at":"2016-05-03T10:56:59Z","body":"There is simple solution for this for the time being till they fix it\r\nI use this \r\n\r\n```\r\nsetInterval(clearTooltip, 6000);\r\nfunction clearTooltip() {\r\n    $('.material-tooltip').hide();\r\n  }\r\n\r\nSo every 6 seconds it will hide all the tooltips which are not closed correctly and stuck on the screen"}}