{"action":"opened","issue":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/864","repository_url":"https://api.github.com/repos/JedWatson/react-select","labels_url":"https://api.github.com/repos/JedWatson/react-select/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/react-select/issues/864/comments","events_url":"https://api.github.com/repos/JedWatson/react-select/issues/864/events","html_url":"https://github.com/JedWatson/react-select/issues/864","id":145917043,"number":864,"title":"Pressing the Tab key(9), if allow create is true, this.selectFocusedOption() should be called","user":{"login":"Shnolik","id":15612847,"avatar_url":"https://avatars.githubusercontent.com/u/15612847?v=3","gravatar_id":"","url":"https://api.github.com/users/Shnolik","html_url":"https://github.com/Shnolik","followers_url":"https://api.github.com/users/Shnolik/followers","following_url":"https://api.github.com/users/Shnolik/following{/other_user}","gists_url":"https://api.github.com/users/Shnolik/gists{/gist_id}","starred_url":"https://api.github.com/users/Shnolik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shnolik/subscriptions","organizations_url":"https://api.github.com/users/Shnolik/orgs","repos_url":"https://api.github.com/users/Shnolik/repos","events_url":"https://api.github.com/users/Shnolik/events{/privacy}","received_events_url":"https://api.github.com/users/Shnolik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-05T07:42:29Z","updated_at":"2016-04-05T07:42:29Z","closed_at":null,"body":"While the user press the Tab key (9), and allowCreate is true, and the user just typed a new value into the input, this input should not be cleared.\r\n\r\n### Current code (handleKeyDown):\r\n```\r\ncase 9: // tab\r\n\t\t\t\tif (event.shiftKey || !this.state.isOpen || !this.state.focusedOption) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.selectFocusedOption();\r\n\t\t\tbreak;\r\n\r\n\r\n```\r\n### Should be changed to \r\n\r\n                     `\r\n```\r\n case 9: // tab\r\n\t\t\t\tif (event.shiftKey || !this.state.isOpen || (!this.props.allowCreate && !this.state.focusedOption) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.selectFocusedOption();\r\n\t\t\tbreak;\r\n```\r\n`"}}