{"action":"created","issue":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/194","repository_url":"https://api.github.com/repos/Dogfalo/materialize","labels_url":"https://api.github.com/repos/Dogfalo/materialize/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/Dogfalo/materialize/issues/194/comments","events_url":"https://api.github.com/repos/Dogfalo/materialize/issues/194/events","html_url":"https://github.com/Dogfalo/materialize/issues/194","id":51139710,"number":194,"title":"bug when browser auto fill forms","user":{"login":"orlax","id":2174663,"avatar_url":"https://avatars0.githubusercontent.com/u/2174663?v=4","gravatar_id":"","url":"https://api.github.com/users/orlax","html_url":"https://github.com/orlax","followers_url":"https://api.github.com/users/orlax/followers","following_url":"https://api.github.com/users/orlax/following{/other_user}","gists_url":"https://api.github.com/users/orlax/gists{/gist_id}","starred_url":"https://api.github.com/users/orlax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlax/subscriptions","organizations_url":"https://api.github.com/users/orlax/orgs","repos_url":"https://api.github.com/users/orlax/repos","events_url":"https://api.github.com/users/orlax/events{/privacy}","received_events_url":"https://api.github.com/users/orlax/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2014-12-05T20:01:09Z","updated_at":"2018-02-14T20:13:29Z","closed_at":"2015-01-09T17:30:54Z","author_association":"NONE","body":"hey there, have you noticed that when someone hace already fill a form, the next time they see it the forms inputs have a yellow background and the autofill value gets mess up with the label (the both ocupe the same space making it un readable) or is this just happening to me? \n![captura de pantalla 2014-12-05 a las 3 01 34 p m](https://cloud.githubusercontent.com/assets/2174663/5322053/a0af8416-7c8f-11e4-8371-a8366a9afb49.png)\n"},"comment":{"url":"https://api.github.com/repos/Dogfalo/materialize/issues/comments/365730990","html_url":"https://github.com/Dogfalo/materialize/issues/194#issuecomment-365730990","issue_url":"https://api.github.com/repos/Dogfalo/materialize/issues/194","id":365730990,"user":{"login":"abraaoz","id":2996734,"avatar_url":"https://avatars0.githubusercontent.com/u/2996734?v=4","gravatar_id":"","url":"https://api.github.com/users/abraaoz","html_url":"https://github.com/abraaoz","followers_url":"https://api.github.com/users/abraaoz/followers","following_url":"https://api.github.com/users/abraaoz/following{/other_user}","gists_url":"https://api.github.com/users/abraaoz/gists{/gist_id}","starred_url":"https://api.github.com/users/abraaoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abraaoz/subscriptions","organizations_url":"https://api.github.com/users/abraaoz/orgs","repos_url":"https://api.github.com/users/abraaoz/repos","events_url":"https://api.github.com/users/abraaoz/events{/privacy}","received_events_url":"https://api.github.com/users/abraaoz/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T20:13:29Z","updated_at":"2018-02-14T20:13:29Z","author_association":"NONE","body":"Another possible solution base on [this answer](https://stackoverflow.com/a/25393087):\r\n\r\n```JavaScript\r\n$.fn.onAutoFill = function(callback) {\r\n\tvar me = this;\r\n\tvar last = \"\";\r\n\tvar infunc = function() {\r\n\t\tvar text = $(me).val();\r\n\t\tif(text != last) {\r\n\t\t\tlast = text;\r\n\t\t\tcallback(me);\r\n\t\t}\r\n\t\tsetTimeout(infunc, 100);\r\n\t}\r\n\tsetTimeout(infunc, 100);\r\n};\r\n\r\n$('input').onAutoFill(function(input) {\r\n\t$(input).siblings('label').addClass('active');\r\n});\r\n```"}}
{"actor":{"display_login":"abraaoz"}}