{"action":"opened","issue":{"url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/3457","repository_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react","labels_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/3457/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/3457/comments","events_url":"https://api.github.com/repos/OfficeDev/office-ui-fabric-react/issues/3457/events","html_url":"https://github.com/OfficeDev/office-ui-fabric-react/issues/3457","id":276584607,"number":3457,"title":"resolveNewValue picker error","user":{"login":"Ridlsan","id":13232749,"avatar_url":"https://avatars2.githubusercontent.com/u/13232749?v=4","gravatar_id":"","url":"https://api.github.com/users/Ridlsan","html_url":"https://github.com/Ridlsan","followers_url":"https://api.github.com/users/Ridlsan/followers","following_url":"https://api.github.com/users/Ridlsan/following{/other_user}","gists_url":"https://api.github.com/users/Ridlsan/gists{/gist_id}","starred_url":"https://api.github.com/users/Ridlsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ridlsan/subscriptions","organizations_url":"https://api.github.com/users/Ridlsan/orgs","repos_url":"https://api.github.com/users/Ridlsan/repos","events_url":"https://api.github.com/users/Ridlsan/events{/privacy}","received_events_url":"https://api.github.com/users/Ridlsan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-24T11:05:20Z","updated_at":"2017-11-24T11:05:20Z","closed_at":null,"author_association":"NONE","body":"There is code in components/pickers/BasePicker.tsx in resolveNewValue :\r\n\r\n```\r\n  this.setState({\r\n      suggestionsLoading: false,\r\n      suggestedDisplayValue: itemValue,\r\n      suggestionsVisible: this.input.value !== '' && this.input.inputElement === document.activeElement\r\n});\r\n```\r\n\r\nIf u limit picker with itemLimit, when u select last item input is removed, so this code throughs error. Easy fix is \r\n```\r\n  this.setState({\r\n      suggestionsLoading: false,\r\n      suggestedDisplayValue: itemValue,\r\n      suggestionsVisible: this.input && this.input.value !== '' && this.input.inputElement === document.activeElement\r\n});\r\n```\r\n\r\n"}}
{"actor":{"display_login":"Ridlsan"}}