{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/paper-dialog/issues/65","labels_url":"https://api.github.com/repos/PolymerElements/paper-dialog/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/paper-dialog/issues/65/comments","events_url":"https://api.github.com/repos/PolymerElements/paper-dialog/issues/65/events","html_url":"https://github.com/PolymerElements/paper-dialog/issues/65","id":116403451,"number":65,"title":"Element with autofocus only gets autofocus the first time the dialog is opened","user":{"login":"azakus","id":46725,"avatar_url":"https://avatars.githubusercontent.com/u/46725?v=3","gravatar_id":"","url":"https://api.github.com/users/azakus","html_url":"https://github.com/azakus","followers_url":"https://api.github.com/users/azakus/followers","following_url":"https://api.github.com/users/azakus/following{/other_user}","gists_url":"https://api.github.com/users/azakus/gists{/gist_id}","starred_url":"https://api.github.com/users/azakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azakus/subscriptions","organizations_url":"https://api.github.com/users/azakus/orgs","repos_url":"https://api.github.com/users/azakus/repos","events_url":"https://api.github.com/users/azakus/events{/privacy}","received_events_url":"https://api.github.com/users/azakus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-11T19:23:39Z","updated_at":"2015-12-10T03:46:10Z","closed_at":"2015-12-08T23:07:12Z","body":"_From @viridium on September 5, 2015 3:13_\n\nIn a `paper-dialog`, I have a `paper-input` with `autofocus`. Open the dialog once -- the autofocus works fine. Open the dialog a second time -- the input no longer has focus.\n\n_Copied from original issue: Polymer/polymer#2418_"},"comment":{"url":"https://api.github.com/repos/PolymerElements/paper-dialog/issues/comments/163478594","html_url":"https://github.com/PolymerElements/paper-dialog/issues/65#issuecomment-163478594","issue_url":"https://api.github.com/repos/PolymerElements/paper-dialog/issues/65","id":163478594,"user":{"login":"valdrinkoshi","id":6173664,"avatar_url":"https://avatars.githubusercontent.com/u/6173664?v=3","gravatar_id":"","url":"https://api.github.com/users/valdrinkoshi","html_url":"https://github.com/valdrinkoshi","followers_url":"https://api.github.com/users/valdrinkoshi/followers","following_url":"https://api.github.com/users/valdrinkoshi/following{/other_user}","gists_url":"https://api.github.com/users/valdrinkoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/valdrinkoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valdrinkoshi/subscriptions","organizations_url":"https://api.github.com/users/valdrinkoshi/orgs","repos_url":"https://api.github.com/users/valdrinkoshi/repos","events_url":"https://api.github.com/users/valdrinkoshi/events{/privacy}","received_events_url":"https://api.github.com/users/valdrinkoshi/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T03:46:10Z","updated_at":"2015-12-10T03:46:10Z","body":"You need to set `autofocus` to a child of the dialog. Your `x-my-input` is responsible of forwarding the focus. Here a working example, notice the `tabindex = -1` and where `autofocus` got moved http://jsbin.com/yavoguj/8/edit?html\r\n"}}