{"action":"created","issue":{"url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/79","repository_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow","labels_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/79/comments","events_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/79/events","html_url":"https://github.com/vaadin/vaadin-combo-box-flow/issues/79","id":324009502,"node_id":"MDU6SXNzdWUzMjQwMDk1MDI=","number":79,"title":"No way to disallow clearing selected value","user":{"login":"OlliTietavainenVaadin","id":15027701,"node_id":"MDQ6VXNlcjE1MDI3NzAx","avatar_url":"https://avatars0.githubusercontent.com/u/15027701?v=4","gravatar_id":"","url":"https://api.github.com/users/OlliTietavainenVaadin","html_url":"https://github.com/OlliTietavainenVaadin","followers_url":"https://api.github.com/users/OlliTietavainenVaadin/followers","following_url":"https://api.github.com/users/OlliTietavainenVaadin/following{/other_user}","gists_url":"https://api.github.com/users/OlliTietavainenVaadin/gists{/gist_id}","starred_url":"https://api.github.com/users/OlliTietavainenVaadin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlliTietavainenVaadin/subscriptions","organizations_url":"https://api.github.com/users/OlliTietavainenVaadin/orgs","repos_url":"https://api.github.com/users/OlliTietavainenVaadin/repos","events_url":"https://api.github.com/users/OlliTietavainenVaadin/events{/privacy}","received_events_url":"https://api.github.com/users/OlliTietavainenVaadin/received_events","type":"User","site_admin":false},"labels":[{"id":728048668,"node_id":"MDU6TGFiZWw3MjgwNDg2Njg=","url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/labels/awaits%20another%20ticket","name":"awaits another ticket","color":"fbca04","default":false},{"id":724709312,"node_id":"MDU6TGFiZWw3MjQ3MDkzMTI=","url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/milestones/25","html_url":"https://github.com/vaadin/vaadin-combo-box-flow/milestone/25","labels_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/milestones/25/labels","id":3354918,"node_id":"MDk6TWlsZXN0b25lMzM1NDkxOA==","number":25,"title":"Not Planned","description":"This is enhancements that we don't have yet any plans or roadmap for, currently.","creator":{"login":"pleku","id":1478381,"node_id":"MDQ6VXNlcjE0NzgzODE=","avatar_url":"https://avatars1.githubusercontent.com/u/1478381?v=4","gravatar_id":"","url":"https://api.github.com/users/pleku","html_url":"https://github.com/pleku","followers_url":"https://api.github.com/users/pleku/followers","following_url":"https://api.github.com/users/pleku/following{/other_user}","gists_url":"https://api.github.com/users/pleku/gists{/gist_id}","starred_url":"https://api.github.com/users/pleku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleku/subscriptions","organizations_url":"https://api.github.com/users/pleku/orgs","repos_url":"https://api.github.com/users/pleku/repos","events_url":"https://api.github.com/users/pleku/events{/privacy}","received_events_url":"https://api.github.com/users/pleku/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2018-05-17T15:14:52Z","updated_at":"2018-05-17T15:14:52Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2018-05-17T12:52:37Z","updated_at":"2018-11-08T13:20:32Z","closed_at":null,"author_association":"MEMBER","body":"<vaadin.version>10.0.0.beta10</vaadin.version>\r\nEven if the ComboBox is set to be `required` with `setRequired(true)`, it's still possible to clear the selected value with the `x` checkmark. There should be a way to make a selection mandatory."},"comment":{"url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/comments/436991285","html_url":"https://github.com/vaadin/vaadin-combo-box-flow/issues/79#issuecomment-436991285","issue_url":"https://api.github.com/repos/vaadin/vaadin-combo-box-flow/issues/79","id":436991285,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjk5MTI4NQ==","user":{"login":"jouni","id":66382,"node_id":"MDQ6VXNlcjY2Mzgy","avatar_url":"https://avatars3.githubusercontent.com/u/66382?v=4","gravatar_id":"","url":"https://api.github.com/users/jouni","html_url":"https://github.com/jouni","followers_url":"https://api.github.com/users/jouni/followers","following_url":"https://api.github.com/users/jouni/following{/other_user}","gists_url":"https://api.github.com/users/jouni/gists{/gist_id}","starred_url":"https://api.github.com/users/jouni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jouni/subscriptions","organizations_url":"https://api.github.com/users/jouni/orgs","repos_url":"https://api.github.com/users/jouni/repos","events_url":"https://api.github.com/users/jouni/events{/privacy}","received_events_url":"https://api.github.com/users/jouni/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T13:20:32Z","updated_at":"2018-11-08T13:20:32Z","author_association":"MEMBER","body":"@anezthes, can you clarify what your thumbs up refers to?\r\n\r\n----\r\n\r\nAs this issue got raised again in a discussion internally, I ended up taking a bit more time to think about this.\r\n\r\nI still slightly disagree that there should be a way to prevent the user from clearing the value in a combo box. I haven’t yet heard a good argument why this would be a better user experience instead of a validation error. Ignoring user input is in general very bad. I mean, the user is choosing to clear the field and we should respect that and let them know if they need to choose a value in order to proceed.\r\n\r\nIf I understand the implied use case correctly as being “there are dozens of options and I always want to select one”, then a better solution is more likely a select with a separate filter field inside the dropdown. Then it does not imply that it’s a freeform input field, but there’s only a filter for the options.\r\n\r\nAn example of that would be the “branch” selector in Github. Using a combo box in its place would seem slightly weird to me, but I suppose you might want to do that if the other alternative was not available as a ready-made component.\r\n\r\nThat said, I’m removing my 👎, and **I’m okay if we want to add this as an opt-in configuration option** (for `<vaadin-combo-box>`). The exact API probably needs some [bikeshedding](https://www.urbandictionary.com/define.php?term=bikeshedding) 🙂 "}}
{"actor":{"display_login":"jouni"}}