{"action":"created","issue":{"url":"https://api.github.com/repos/Matt-Esch/virtual-dom/issues/228","labels_url":"https://api.github.com/repos/Matt-Esch/virtual-dom/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/Matt-Esch/virtual-dom/issues/228/comments","events_url":"https://api.github.com/repos/Matt-Esch/virtual-dom/issues/228/events","html_url":"https://github.com/Matt-Esch/virtual-dom/issues/228","id":67617963,"number":228,"title":"Input type range control has wrong value on initial render","user":{"login":"danyx23","id":2772449,"avatar_url":"https://avatars.githubusercontent.com/u/2772449?v=3","gravatar_id":"","url":"https://api.github.com/users/danyx23","html_url":"https://github.com/danyx23","followers_url":"https://api.github.com/users/danyx23/followers","following_url":"https://api.github.com/users/danyx23/following{/other_user}","gists_url":"https://api.github.com/users/danyx23/gists{/gist_id}","starred_url":"https://api.github.com/users/danyx23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danyx23/subscriptions","organizations_url":"https://api.github.com/users/danyx23/orgs","repos_url":"https://api.github.com/users/danyx23/repos","events_url":"https://api.github.com/users/danyx23/events{/privacy}","received_events_url":"https://api.github.com/users/danyx23/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-04-10T15:18:36Z","updated_at":"2015-04-15T14:41:00Z","closed_at":"2015-04-11T12:56:57Z","body":"When you add an input element of type range (slider control) that has min and max set to non-default values, and use the value attribute to set the initial slider position, then the initial render of virtual-dom will place the slider at a wrong position (in my tests all the way to the left or right). On the first patch application the slider jumps into the right spot, but the initial render is wrong.\r\n\r\nSee this gist which demonstrates the wrong initial position and that the first patch (after a 3 second delay) fixes it: http://requirebin.com/?gist=e1f8f94771d15d79b983\r\n\r\nEncountered this when working with cycle-js. The discussion leading to the discovery of the bug is here: https://github.com/danyx23/cyclejsBMI/issues/1"},"comment":{"url":"https://api.github.com/repos/Matt-Esch/virtual-dom/issues/comments/93426838","html_url":"https://github.com/Matt-Esch/virtual-dom/issues/228#issuecomment-93426838","issue_url":"https://api.github.com/repos/Matt-Esch/virtual-dom/issues/228","id":93426838,"user":{"login":"neonstalwart","id":84763,"avatar_url":"https://avatars.githubusercontent.com/u/84763?v=3","gravatar_id":"","url":"https://api.github.com/users/neonstalwart","html_url":"https://github.com/neonstalwart","followers_url":"https://api.github.com/users/neonstalwart/followers","following_url":"https://api.github.com/users/neonstalwart/following{/other_user}","gists_url":"https://api.github.com/users/neonstalwart/gists{/gist_id}","starred_url":"https://api.github.com/users/neonstalwart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neonstalwart/subscriptions","organizations_url":"https://api.github.com/users/neonstalwart/orgs","repos_url":"https://api.github.com/users/neonstalwart/repos","events_url":"https://api.github.com/users/neonstalwart/events{/privacy}","received_events_url":"https://api.github.com/users/neonstalwart/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T14:41:00Z","updated_at":"2015-04-15T14:41:00Z","body":"fwiw, #213 which was just merged allows you to provide a custom `render` function when patching and i believe it would allow you to do some of this kind of customization."}}