{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/333","repository_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form","labels_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/333/comments","events_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/333/events","html_url":"https://github.com/mozilla-services/react-jsonschema-form/issues/333","id":181037252,"number":333,"title":"Select box should allow option to have nothing selected by default rather than the first enum in the list","user":{"login":"ifitzpatrick","id":791513,"avatar_url":"https://avatars.githubusercontent.com/u/791513?v=3","gravatar_id":"","url":"https://api.github.com/users/ifitzpatrick","html_url":"https://github.com/ifitzpatrick","followers_url":"https://api.github.com/users/ifitzpatrick/followers","following_url":"https://api.github.com/users/ifitzpatrick/following{/other_user}","gists_url":"https://api.github.com/users/ifitzpatrick/gists{/gist_id}","starred_url":"https://api.github.com/users/ifitzpatrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifitzpatrick/subscriptions","organizations_url":"https://api.github.com/users/ifitzpatrick/orgs","repos_url":"https://api.github.com/users/ifitzpatrick/repos","events_url":"https://api.github.com/users/ifitzpatrick/events{/privacy}","received_events_url":"https://api.github.com/users/ifitzpatrick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/labels/ux","name":"ux","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T00:19:15Z","updated_at":"2016-10-25T19:10:24Z","closed_at":null,"body":"When user has not chosen an item in a select box, the select box starts off with the first item selected.\r\nIf we want the form to send updates on \"change\" instead of \"submit\", and a user wishes to select the first item, the user has to change the selection twice to get a change event to fire with the choice they actually want. \r\n\r\nThe solution we propose is to have the first item in the select box be blank instead of selecting an item to start with. Once a user has made a choice the blank item could be removed from the list.\r\n\r\nversion: 0.38.0\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/comments/256145514","html_url":"https://github.com/mozilla-services/react-jsonschema-form/issues/333#issuecomment-256145514","issue_url":"https://api.github.com/repos/mozilla-services/react-jsonschema-form/issues/333","id":256145514,"user":{"login":"chadrik","id":63251,"avatar_url":"https://avatars.githubusercontent.com/u/63251?v=3","gravatar_id":"","url":"https://api.github.com/users/chadrik","html_url":"https://github.com/chadrik","followers_url":"https://api.github.com/users/chadrik/followers","following_url":"https://api.github.com/users/chadrik/following{/other_user}","gists_url":"https://api.github.com/users/chadrik/gists{/gist_id}","starred_url":"https://api.github.com/users/chadrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadrik/subscriptions","organizations_url":"https://api.github.com/users/chadrik/orgs","repos_url":"https://api.github.com/users/chadrik/repos","events_url":"https://api.github.com/users/chadrik/events{/privacy}","received_events_url":"https://api.github.com/users/chadrik/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T19:10:24Z","updated_at":"2016-10-25T19:10:24Z","body":">> Once a user has made a choice the blank item could be removed from the list.\r\n\r\n> Not sure about that. Let's leave it among the choices so that the submitted value can be emtpy if necessary.\r\n\r\nI can't see why would we want to give the user the ability to *revert* their choice back to an invalid option.  The value, once chosen, must be one of the enumerated choices.  To put it another way, the input begins in an unchosen state (always invalid), and then progresses to a chosen state (always valid), but never back.\r\n\r\n"}}
{"actor":{"display_login":"chadrik"}}