{"action":"created","issue":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/1384","repository_url":"https://api.github.com/repos/lhorie/mithril.js","labels_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1384/labels{/name}","comments_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1384/comments","events_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1384/events","html_url":"https://github.com/lhorie/mithril.js/issues/1384","id":187136410,"number":1384,"title":"How set note properties after render","user":{"login":"SuselMan","id":2387481,"avatar_url":"https://avatars.githubusercontent.com/u/2387481?v=3","gravatar_id":"","url":"https://api.github.com/users/SuselMan","html_url":"https://github.com/SuselMan","followers_url":"https://api.github.com/users/SuselMan/followers","following_url":"https://api.github.com/users/SuselMan/following{/other_user}","gists_url":"https://api.github.com/users/SuselMan/gists{/gist_id}","starred_url":"https://api.github.com/users/SuselMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuselMan/subscriptions","organizations_url":"https://api.github.com/users/SuselMan/orgs","repos_url":"https://api.github.com/users/SuselMan/repos","events_url":"https://api.github.com/users/SuselMan/events{/privacy}","received_events_url":"https://api.github.com/users/SuselMan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-03T17:25:18Z","updated_at":"2016-11-07T10:35:06Z","closed_at":null,"body":"### Description:\r\nI have a component witch include textarea. If i change texarea's value from view-model, IE11 reset caret position. I want to change selectionStart and selectionEnd position after view rendering but cant find way how i can listen event like \"onrender\". How can i catch re-rendering moment?\r\n\r\n```\r\n  CARET = 0\r\n\r\n  class TitleEditor\r\n    view: (ctrl, {prop, max}) ->\r\n      m \"div.title-editor\", {class: c('error': not prop())}, [\r\n        m \"textarea[autofocus]\", {\r\n          maxlength: max  # works for all modern browsers\r\n          placeholder: prop.placeHolder\r\n          config: autosize\r\n          value: prop()\r\n          onkeydown: (e) ->\r\n            e.preventDefault() if e.keyCode is ENTER\r\n          oninput: (e) ->\r\n            CARET=@selectionStart\r\n            @value = sanitize(@value)\r\n            prop(@value)\r\n        }\r\n      ]\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/lhorie/mithril.js/issues/comments/258801067","html_url":"https://github.com/lhorie/mithril.js/issues/1384#issuecomment-258801067","issue_url":"https://api.github.com/repos/lhorie/mithril.js/issues/1384","id":258801067,"user":{"login":"SuselMan","id":2387481,"avatar_url":"https://avatars.githubusercontent.com/u/2387481?v=3","gravatar_id":"","url":"https://api.github.com/users/SuselMan","html_url":"https://github.com/SuselMan","followers_url":"https://api.github.com/users/SuselMan/followers","following_url":"https://api.github.com/users/SuselMan/following{/other_user}","gists_url":"https://api.github.com/users/SuselMan/gists{/gist_id}","starred_url":"https://api.github.com/users/SuselMan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuselMan/subscriptions","organizations_url":"https://api.github.com/users/SuselMan/orgs","repos_url":"https://api.github.com/users/SuselMan/repos","events_url":"https://api.github.com/users/SuselMan/events{/privacy}","received_events_url":"https://api.github.com/users/SuselMan/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T10:35:06Z","updated_at":"2016-11-07T10:35:06Z","body":"Thank you very much! It is working."}}
{"actor":{"display_login":"SuselMan"}}