{"action":"created","issue":{"url":"https://api.github.com/repos/sergiodlopes/jquery-flexdatalist/issues/41","repository_url":"https://api.github.com/repos/sergiodlopes/jquery-flexdatalist","labels_url":"https://api.github.com/repos/sergiodlopes/jquery-flexdatalist/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/sergiodlopes/jquery-flexdatalist/issues/41/comments","events_url":"https://api.github.com/repos/sergiodlopes/jquery-flexdatalist/issues/41/events","html_url":"https://github.com/sergiodlopes/jquery-flexdatalist/issues/41","id":208413139,"number":41,"title":"focus()","user":{"login":"andreasrosenthal","id":25843033,"avatar_url":"https://avatars.githubusercontent.com/u/25843033?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasrosenthal","html_url":"https://github.com/andreasrosenthal","followers_url":"https://api.github.com/users/andreasrosenthal/followers","following_url":"https://api.github.com/users/andreasrosenthal/following{/other_user}","gists_url":"https://api.github.com/users/andreasrosenthal/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasrosenthal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasrosenthal/subscriptions","organizations_url":"https://api.github.com/users/andreasrosenthal/orgs","repos_url":"https://api.github.com/users/andreasrosenthal/repos","events_url":"https://api.github.com/users/andreasrosenthal/events{/privacy}","received_events_url":"https://api.github.com/users/andreasrosenthal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-17T11:22:10Z","updated_at":"2017-02-17T12:29:24Z","closed_at":null,"body":"Can you please advice on how to focus on a search field? \r\n\r\nI assume flexdatalist generates a new input field suffixed \"-flexdatalist\" which carries the text input, while the original input field is storing the selected value. \r\n\r\nTrying to focus() on that field $(\"#somfield-flexdatalist\").focus(); doesn't work (without any errors raised).\r\n\r\nAny hints please? \r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/sergiodlopes/jquery-flexdatalist/issues/comments/280636820","html_url":"https://github.com/sergiodlopes/jquery-flexdatalist/issues/41#issuecomment-280636820","issue_url":"https://api.github.com/repos/sergiodlopes/jquery-flexdatalist/issues/41","id":280636820,"user":{"login":"Mordef","id":22061464,"avatar_url":"https://avatars.githubusercontent.com/u/22061464?v=3","gravatar_id":"","url":"https://api.github.com/users/Mordef","html_url":"https://github.com/Mordef","followers_url":"https://api.github.com/users/Mordef/followers","following_url":"https://api.github.com/users/Mordef/following{/other_user}","gists_url":"https://api.github.com/users/Mordef/gists{/gist_id}","starred_url":"https://api.github.com/users/Mordef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mordef/subscriptions","organizations_url":"https://api.github.com/users/Mordef/orgs","repos_url":"https://api.github.com/users/Mordef/repos","events_url":"https://api.github.com/users/Mordef/events{/privacy}","received_events_url":"https://api.github.com/users/Mordef/received_events","type":"User","site_admin":false},"created_at":"2017-02-17T12:29:24Z","updated_at":"2017-02-17T12:29:24Z","body":"Hi,\r\n\r\nfound no event for this.\r\nYou can use this:\r\n\r\n```\r\n\twindow.setTimeout(function(){setFocus('keys');},100);\r\n\tfunction setFocus(elId) {\r\n\t\tif ($('#' + elId).next().find('input').length===1) {\r\n\t\t\t$('#' + elId).next().find('input').focus();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\twindow.setTimeout(function(){setFocus(elId);},100);\r\n\t}\r\n\r\n```\r\n"}}
{"actor":{"display_login":"Mordef"}}