{"action":"created","issue":{"url":"https://api.github.com/repos/gopherjs/vecty/issues/21","repository_url":"https://api.github.com/repos/gopherjs/vecty","labels_url":"https://api.github.com/repos/gopherjs/vecty/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/gopherjs/vecty/issues/21/comments","events_url":"https://api.github.com/repos/gopherjs/vecty/issues/21/events","html_url":"https://github.com/gopherjs/vecty/issues/21","id":133400803,"number":21,"title":"browser DOM refs","user":{"login":"slimsag","id":3173176,"avatar_url":"https://avatars.githubusercontent.com/u/3173176?v=3","gravatar_id":"","url":"https://api.github.com/users/slimsag","html_url":"https://github.com/slimsag","followers_url":"https://api.github.com/users/slimsag/followers","following_url":"https://api.github.com/users/slimsag/following{/other_user}","gists_url":"https://api.github.com/users/slimsag/gists{/gist_id}","starred_url":"https://api.github.com/users/slimsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimsag/subscriptions","organizations_url":"https://api.github.com/users/slimsag/orgs","repos_url":"https://api.github.com/users/slimsag/repos","events_url":"https://api.github.com/users/slimsag/events{/privacy}","received_events_url":"https://api.github.com/users/slimsag/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gopherjs/vecty/labels/arch-design","name":"arch-design","color":"207de5"},{"url":"https://api.github.com/repos/gopherjs/vecty/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-13T05:36:09Z","updated_at":"2016-02-29T02:04:42Z","closed_at":null,"body":"The TodoMVC example currently does not select the text input when double clicking on an item. This is because we don't have any way to call `theInputElement.focus()` which in React would look something like:\r\n\r\n```\r\nReactDOM.findDOMNode(this.refs.theInputElement).focus(); \r\n```\r\n\r\nNeed to figure out the right design for this."},"comment":{"url":"https://api.github.com/repos/gopherjs/vecty/issues/comments/189995898","html_url":"https://github.com/gopherjs/vecty/issues/21#issuecomment-189995898","issue_url":"https://api.github.com/repos/gopherjs/vecty/issues/21","id":189995898,"user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T02:04:42Z","updated_at":"2016-02-29T02:04:42Z","body":"Maybe it's a \"focus\" event?\r\n\r\nI've been in a situation where I was creating an \"input\" custom event on purpose, to trigger event listeners. See https://gotools.org/src.sourcegraph.com/apps/tracker/assets/script#main-go-L245.\r\n\r\nPerhaps it can be something similar.\r\n\r\nHowever, I think in this case, the problem is not the events that JS event listeners see, but having the browser actually give focus to the element so that typing letters on the keyboard results in text being entered in the input element. I haven't tested it, but I doubt this would work by creating a fake \"focus\" event."}}