{"action":"closed","issue":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/958","repository_url":"https://api.github.com/repos/JedWatson/react-select","labels_url":"https://api.github.com/repos/JedWatson/react-select/issues/958/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/react-select/issues/958/comments","events_url":"https://api.github.com/repos/JedWatson/react-select/issues/958/events","html_url":"https://github.com/JedWatson/react-select/issues/958","id":154698318,"number":958,"title":"Clear value/clear Form to fire action ","user":{"login":"m4cn4ir","id":18437851,"avatar_url":"https://avatars.githubusercontent.com/u/18437851?v=3","gravatar_id":"","url":"https://api.github.com/users/m4cn4ir","html_url":"https://github.com/m4cn4ir","followers_url":"https://api.github.com/users/m4cn4ir/followers","following_url":"https://api.github.com/users/m4cn4ir/following{/other_user}","gists_url":"https://api.github.com/users/m4cn4ir/gists{/gist_id}","starred_url":"https://api.github.com/users/m4cn4ir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m4cn4ir/subscriptions","organizations_url":"https://api.github.com/users/m4cn4ir/orgs","repos_url":"https://api.github.com/users/m4cn4ir/repos","events_url":"https://api.github.com/users/m4cn4ir/events{/privacy}","received_events_url":"https://api.github.com/users/m4cn4ir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JedWatson/react-select/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-13T12:14:57Z","updated_at":"2016-05-15T01:02:57Z","closed_at":"2016-05-15T01:02:57Z","body":"Hello,\r\n\r\nfirst things first: thanks for this great package.\r\nI have a multiselect field. Every value has an additional attribute: isVisible which is by default false. If you hit a value its isVisible becomes true. If the value gets unselected the isVisible attribute should be set to false again. There are 2 ways to unselect:\r\n\r\n- \"the global clear\" that clears every value if multi={true}. This works great with onClose={this.handleSelectClose.bind(this)}. However this also gets fired if the form was focused and I click outside the form with the mouse. Is there a way to prevent this? I found this in the todos: \"handle _ closeMenuIfClickedOutside\". Is there a quick workaround or any news on this todo?\r\n\r\n- \"the value specific clear\": the \"x\" next to each value. Is there a function that fires only by clicking the \"x\"?\r\n\r\nMy intentions: I want to have multiple multiselect fields. Lets say the first contains car companys and the second its cars. If I click Bmw &Audi on the first, the second field should only show its corresponding cars. Hence the attribute isVisible. As mentioned, the problem is not setting the attribute but resetting it again. Besides the 2 options above, do you have any other possible solution?\r\nThanks in advance"}}