{"action":"created","issue":{"url":"https://api.github.com/repos/etaque/elm-simple-form/issues/54","repository_url":"https://api.github.com/repos/etaque/elm-simple-form","labels_url":"https://api.github.com/repos/etaque/elm-simple-form/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/etaque/elm-simple-form/issues/54/comments","events_url":"https://api.github.com/repos/etaque/elm-simple-form/issues/54/events","html_url":"https://github.com/etaque/elm-simple-form/issues/54","id":184262032,"number":54,"title":"Use of defaultValue instead of value","user":{"login":"stil4m","id":713384,"avatar_url":"https://avatars.githubusercontent.com/u/713384?v=3","gravatar_id":"","url":"https://api.github.com/users/stil4m","html_url":"https://github.com/stil4m","followers_url":"https://api.github.com/users/stil4m/followers","following_url":"https://api.github.com/users/stil4m/following{/other_user}","gists_url":"https://api.github.com/users/stil4m/gists{/gist_id}","starred_url":"https://api.github.com/users/stil4m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stil4m/subscriptions","organizations_url":"https://api.github.com/users/stil4m/orgs","repos_url":"https://api.github.com/users/stil4m/repos","events_url":"https://api.github.com/users/stil4m/events{/privacy}","received_events_url":"https://api.github.com/users/stil4m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-20T15:28:02Z","updated_at":"2016-10-22T10:07:03Z","closed_at":null,"body":"A known issue with using value is that when you have you type really fast some update are overwritten with the next one, which results in incomplete text. The fix for this is to use `defaultValue`. Is there a reason why this library uses `value`?\r\n\r\nWe currently have problems testing this with end-to-end tests and `defaultValue` will probably fix this."},"comment":{"url":"https://api.github.com/repos/etaque/elm-simple-form/issues/comments/255519422","html_url":"https://github.com/etaque/elm-simple-form/issues/54#issuecomment-255519422","issue_url":"https://api.github.com/repos/etaque/elm-simple-form/issues/54","id":255519422,"user":{"login":"pablohirafuji","id":15112020,"avatar_url":"https://avatars.githubusercontent.com/u/15112020?v=3","gravatar_id":"","url":"https://api.github.com/users/pablohirafuji","html_url":"https://github.com/pablohirafuji","followers_url":"https://api.github.com/users/pablohirafuji/followers","following_url":"https://api.github.com/users/pablohirafuji/following{/other_user}","gists_url":"https://api.github.com/users/pablohirafuji/gists{/gist_id}","starred_url":"https://api.github.com/users/pablohirafuji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablohirafuji/subscriptions","organizations_url":"https://api.github.com/users/pablohirafuji/orgs","repos_url":"https://api.github.com/users/pablohirafuji/repos","events_url":"https://api.github.com/users/pablohirafuji/events{/privacy}","received_events_url":"https://api.github.com/users/pablohirafuji/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T10:07:03Z","updated_at":"2016-10-22T10:07:03Z","body":"Consider [this example](https://gist.github.com/pablohirafuji/1fcfec3418c0c17bff0b2fb776d92fe2) (you can run it on http://elm-lang.org/try).\r\n\r\nUsing `defaultValue`, I can no longer reset the textarea visual value and it can be out of sync with the model value.\r\n\r\nUsing `value`, we have the \"type really fast some update are overwritten\" bug, but the visual value is always in sync with the model value.\r\n\r\nSo we have to choose which one is preferable. I think the `value` one has less critical downside.\r\n\r\nIf anyone know a solution that does not have neither downsides, please share."}}
{"actor":{"display_login":"pablohirafuji"}}