{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2626","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2626/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2626/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2626/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/2626","id":94838106,"number":2626,"title":"[Dropdown] multiple bugs in select multiple /w angular","user":{"login":"quentinlampin","id":2759092,"avatar_url":"https://avatars.githubusercontent.com/u/2759092?v=3","gravatar_id":"","url":"https://api.github.com/users/quentinlampin","html_url":"https://github.com/quentinlampin","followers_url":"https://api.github.com/users/quentinlampin/followers","following_url":"https://api.github.com/users/quentinlampin/following{/other_user}","gists_url":"https://api.github.com/users/quentinlampin/gists{/gist_id}","starred_url":"https://api.github.com/users/quentinlampin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quentinlampin/subscriptions","organizations_url":"https://api.github.com/users/quentinlampin/orgs","repos_url":"https://api.github.com/users/quentinlampin/repos","events_url":"https://api.github.com/users/quentinlampin/events{/privacy}","received_events_url":"https://api.github.com/users/quentinlampin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/labels/Evaluating%20Bug%20/%20Change","name":"Evaluating Bug / Change","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/milestones/17","html_url":"https://github.com/Semantic-Org/Semantic-UI/milestones/2.1","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/milestones/17/labels","id":1172601,"number":17,"title":"2.1","description":"","creator":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"open_issues":28,"closed_issues":4,"state":"open","created_at":"2015-06-19T15:17:00Z","updated_at":"2015-07-14T21:18:32Z","due_on":"2015-07-15T04:00:00Z","closed_at":null},"comments":2,"created_at":"2015-07-14T00:01:24Z","updated_at":"2015-07-14T22:08:53Z","closed_at":null,"body":"I've encountered multiple bugs when using semantic UI's dropdown to prettify a `select multiple` bound to an angular controller.\r\n\r\nIssues arise \r\n- when the controller updates the selection, e.g. when clearing the model once the form is submitted. In that case, selection labels are not cleared, the UI does not reflect the model state.\r\n- when `dropdown('clear')` is used, causing angular to raise an error (probably trying to access the length of the selection array which has been wiped by `dropdown('clear')`).\r\n\r\nThe following plunker shows the encountered issues:\r\nhttp://plnkr.co/edit/r93SZXKQ8w5pAzlD1TlK?p=preview"},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/121406896","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/2626#issuecomment-121406896","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/2626","id":121406896,"user":{"login":"quentinlampin","id":2759092,"avatar_url":"https://avatars.githubusercontent.com/u/2759092?v=3","gravatar_id":"","url":"https://api.github.com/users/quentinlampin","html_url":"https://github.com/quentinlampin","followers_url":"https://api.github.com/users/quentinlampin/followers","following_url":"https://api.github.com/users/quentinlampin/following{/other_user}","gists_url":"https://api.github.com/users/quentinlampin/gists{/gist_id}","starred_url":"https://api.github.com/users/quentinlampin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quentinlampin/subscriptions","organizations_url":"https://api.github.com/users/quentinlampin/orgs","repos_url":"https://api.github.com/users/quentinlampin/repos","events_url":"https://api.github.com/users/quentinlampin/events{/privacy}","received_events_url":"https://api.github.com/users/quentinlampin/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T22:08:53Z","updated_at":"2015-07-14T22:08:53Z","body":"Thanks for the feedback. I understand your opinion, yet I believe we should\naddress it sooner than later as I see quite a lot of cases where this\nwould bite again.\nIn my case, this was in a form  that needs to be refreshed once the user\npress the submit button. Think of an address bar a la gmail where you type\nin a few letters and, when matched, add the recipient's name as a label in\nthe field. once the mail is sent, the field needs to be cleared...\n\nObviously, you could suggest me a solution without angular but this\nframework is quite popular and that I'm sure issues like this one will pop\nup often.\n\nThat said, I'm willing to help but I need help/hints as where to start.\n\nOn a side note, for the time being, it might be interesting to put a\nwarning in the docs on that matter.\n\nSorry for the long post!\nLe 14 juil. 2015 08:28, \"Jack Lukic\" <notifications@github.com> a écrit :\n\n> Thanks for the thorough test case, its appreciated.\n>\n> Refresh does not currently automatically modify state to match <option>\n> selection. This would be considered an enhancement.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Semantic-Org/Semantic-UI/issues/2626#issuecomment-121281868>\n> .\n>\n"}}