{"action":"created","issue":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/562","repository_url":"https://api.github.com/repos/formly-js/angular-formly","labels_url":"https://api.github.com/repos/formly-js/angular-formly/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/formly-js/angular-formly/issues/562/comments","events_url":"https://api.github.com/repos/formly-js/angular-formly/issues/562/events","html_url":"https://github.com/formly-js/angular-formly/issues/562","id":119294133,"number":562,"title":"Fix focus with UI Bootstrap Modal","user":{"login":"Knoxvillekm","id":11072464,"avatar_url":"https://avatars.githubusercontent.com/u/11072464?v=3","gravatar_id":"","url":"https://api.github.com/users/Knoxvillekm","html_url":"https://github.com/Knoxvillekm","followers_url":"https://api.github.com/users/Knoxvillekm/followers","following_url":"https://api.github.com/users/Knoxvillekm/following{/other_user}","gists_url":"https://api.github.com/users/Knoxvillekm/gists{/gist_id}","starred_url":"https://api.github.com/users/Knoxvillekm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knoxvillekm/subscriptions","organizations_url":"https://api.github.com/users/Knoxvillekm/orgs","repos_url":"https://api.github.com/users/Knoxvillekm/repos","events_url":"https://api.github.com/users/Knoxvillekm/events{/privacy}","received_events_url":"https://api.github.com/users/Knoxvillekm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-28T13:31:31Z","updated_at":"2016-04-26T18:16:39Z","closed_at":"2015-11-30T22:17:28Z","body":"Field not focused and touched (show validation error)\r\n\r\nhttp://jsbin.com/dibilesore/1/edit?html,js,output"},"comment":{"url":"https://api.github.com/repos/formly-js/angular-formly/issues/comments/214835125","html_url":"https://github.com/formly-js/angular-formly/issues/562#issuecomment-214835125","issue_url":"https://api.github.com/repos/formly-js/angular-formly/issues/562","id":214835125,"user":{"login":"juriw","id":7030932,"avatar_url":"https://avatars.githubusercontent.com/u/7030932?v=3","gravatar_id":"","url":"https://api.github.com/users/juriw","html_url":"https://github.com/juriw","followers_url":"https://api.github.com/users/juriw/followers","following_url":"https://api.github.com/users/juriw/following{/other_user}","gists_url":"https://api.github.com/users/juriw/gists{/gist_id}","starred_url":"https://api.github.com/users/juriw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juriw/subscriptions","organizations_url":"https://api.github.com/users/juriw/orgs","repos_url":"https://api.github.com/users/juriw/repos","events_url":"https://api.github.com/users/juriw/events{/privacy}","received_events_url":"https://api.github.com/users/juriw/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T18:16:39Z","updated_at":"2016-04-26T18:16:39Z","body":"@kentcdodds I have the same problem with Angular Material v1.0.1\r\n\r\nMy problem is that only first time the modals first input is triggered. Next time it is not autofocused but the focus is kept on the main view behind the modal.\r\n\r\nThis is how I use autofocus in my modals; \r\n```\r\nvm.fields = [\r\n        {\r\n            \"elementAttributes\": {\r\n                layout: \"row\",\r\n                \"layout-sm\": \"column\"\r\n            },\r\n            \"fieldGroup\": [\r\n                {\r\n\r\n                    key: 'name',\r\n                    className: \"flex-100 layout-column\",\r\n                    type: 'input',\r\n                    templateOptions: {\r\n                        type: 'text',\r\n                        label: 'Kundenavn',\r\n                        required: true,\r\n                        focus: true\r\n                    }\r\n                },\r\n................................................................................\r\n```"}}