{"action":"created","issue":{"url":"https://api.github.com/repos/tastejs/todomvc/issues/1423","labels_url":"https://api.github.com/repos/tastejs/todomvc/issues/1423/labels{/name}","comments_url":"https://api.github.com/repos/tastejs/todomvc/issues/1423/comments","events_url":"https://api.github.com/repos/tastejs/todomvc/issues/1423/events","html_url":"https://github.com/tastejs/todomvc/pull/1423","id":102817305,"number":1423,"title":"Changing redraw strategy while handling input events","user":{"login":"marcolamberto","id":1550235,"avatar_url":"https://avatars.githubusercontent.com/u/1550235?v=3","gravatar_id":"","url":"https://api.github.com/users/marcolamberto","html_url":"https://github.com/marcolamberto","followers_url":"https://api.github.com/users/marcolamberto/followers","following_url":"https://api.github.com/users/marcolamberto/following{/other_user}","gists_url":"https://api.github.com/users/marcolamberto/gists{/gist_id}","starred_url":"https://api.github.com/users/marcolamberto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcolamberto/subscriptions","organizations_url":"https://api.github.com/users/marcolamberto/orgs","repos_url":"https://api.github.com/users/marcolamberto/repos","events_url":"https://api.github.com/users/marcolamberto/events{/privacy}","received_events_url":"https://api.github.com/users/marcolamberto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-24T15:17:26Z","updated_at":"2015-08-24T18:20:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tastejs/todomvc/pulls/1423","html_url":"https://github.com/tastejs/todomvc/pull/1423","diff_url":"https://github.com/tastejs/todomvc/pull/1423.diff","patch_url":"https://github.com/tastejs/todomvc/pull/1423.patch"},"body":"Changing redraw strategy to \"none\" while handling input events in order to avoid focus issues (caret forced to the input value end)."},"comment":{"url":"https://api.github.com/repos/tastejs/todomvc/issues/comments/134324670","html_url":"https://github.com/tastejs/todomvc/pull/1423#issuecomment-134324670","issue_url":"https://api.github.com/repos/tastejs/todomvc/issues/1423","id":134324670,"user":{"login":"marcolamberto","id":1550235,"avatar_url":"https://avatars.githubusercontent.com/u/1550235?v=3","gravatar_id":"","url":"https://api.github.com/users/marcolamberto","html_url":"https://github.com/marcolamberto","followers_url":"https://api.github.com/users/marcolamberto/followers","following_url":"https://api.github.com/users/marcolamberto/following{/other_user}","gists_url":"https://api.github.com/users/marcolamberto/gists{/gist_id}","starred_url":"https://api.github.com/users/marcolamberto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcolamberto/subscriptions","organizations_url":"https://api.github.com/users/marcolamberto/orgs","repos_url":"https://api.github.com/users/marcolamberto/repos","events_url":"https://api.github.com/users/marcolamberto/events{/privacy}","received_events_url":"https://api.github.com/users/marcolamberto/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T18:20:01Z","updated_at":"2015-08-24T18:20:01Z","body":"Ok, I'll squash them. ;)\r\n\r\nI've just changed how the view is rendered. In the current \"production\" code when the input field is displayed the view is re-rendered automatically every time an \"oninput\" or \"onkeyup\" event handler is triggered. This is the default behaviour. Btw redrawing the view during a \"keyup\" event loose the focus and the caret position. The current code seems trying to fix this behaviour by forcing the focus again and moving the selection to the end. The user experience is horrible, just try changing something in the middle of the text."}}