{"action":"created","issue":{"url":"https://api.github.com/repos/framework7io/framework7/issues/2008","repository_url":"https://api.github.com/repos/framework7io/framework7","labels_url":"https://api.github.com/repos/framework7io/framework7/issues/2008/labels{/name}","comments_url":"https://api.github.com/repos/framework7io/framework7/issues/2008/comments","events_url":"https://api.github.com/repos/framework7io/framework7/issues/2008/events","html_url":"https://github.com/framework7io/framework7/issues/2008","id":281976587,"number":2008,"title":"Prompt input auto-focus, set input type or Modal onReady event","user":{"login":"lepe","id":1373346,"avatar_url":"https://avatars1.githubusercontent.com/u/1373346?v=4","gravatar_id":"","url":"https://api.github.com/users/lepe","html_url":"https://github.com/lepe","followers_url":"https://api.github.com/users/lepe/followers","following_url":"https://api.github.com/users/lepe/following{/other_user}","gists_url":"https://api.github.com/users/lepe/gists{/gist_id}","starred_url":"https://api.github.com/users/lepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepe/subscriptions","organizations_url":"https://api.github.com/users/lepe/orgs","repos_url":"https://api.github.com/users/lepe/repos","events_url":"https://api.github.com/users/lepe/events{/privacy}","received_events_url":"https://api.github.com/users/lepe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-14T04:14:36Z","updated_at":"2017-12-14T09:39:05Z","closed_at":"2017-12-14T09:39:05Z","author_association":"NONE","body":"This is a (multiple allowed):\r\n* [x] enhancement\r\n\r\n* Framework7 Version: 1.6.5\r\n* Platform and Target: Web\r\n\r\n### What you did\r\nOpen a prompt: \r\n`MyApp.prompt(\"title\",\"text\",  function (value) { .. });`\r\n\r\n### Expected Behavior\r\nThere is no way to focus automatically on input.\r\nThis also affects `modal`, as there is no way to execute a code after the modal has been displayed. \r\nThe only alternative is to use a delay timer and then set the focus, but it is not elegant. \r\nIn my opinion, modals (of any type) could have an event like \"onReady\", to execute a callback when the modal is ready, so the developer can modify the elements or the behavior of it without having to use hacks. \r\n\r\n### Actual Behavior\r\nUser requires to click/touch the input \r\n\r\n### Additional feature request\r\n* It would be nice if you could set the input type (e.g. number, date, email, url, etc), so the keyboard in some devices can be displayed accordingly. \r\n"},"comment":{"url":"https://api.github.com/repos/framework7io/framework7/issues/comments/351658539","html_url":"https://github.com/framework7io/framework7/issues/2008#issuecomment-351658539","issue_url":"https://api.github.com/repos/framework7io/framework7/issues/2008","id":351658539,"user":{"login":"lepe","id":1373346,"avatar_url":"https://avatars1.githubusercontent.com/u/1373346?v=4","gravatar_id":"","url":"https://api.github.com/users/lepe","html_url":"https://github.com/lepe","followers_url":"https://api.github.com/users/lepe/followers","following_url":"https://api.github.com/users/lepe/following{/other_user}","gists_url":"https://api.github.com/users/lepe/gists{/gist_id}","starred_url":"https://api.github.com/users/lepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepe/subscriptions","organizations_url":"https://api.github.com/users/lepe/orgs","repos_url":"https://api.github.com/users/lepe/repos","events_url":"https://api.github.com/users/lepe/events{/privacy}","received_events_url":"https://api.github.com/users/lepe/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T09:39:05Z","updated_at":"2017-12-14T09:39:05Z","author_association":"NONE","body":"I'm sorry, I found the events at the bottom of the documentation: [https://framework7.io/docs/modal.html#modal-events](https://framework7.io/docs/modal.html#modal-events)"}}
{"actor":{"display_login":"lepe"}}