{"action":"created","issue":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/250","labels_url":"https://api.github.com/repos/JedWatson/react-select/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/JedWatson/react-select/issues/250/comments","events_url":"https://api.github.com/repos/JedWatson/react-select/issues/250/events","html_url":"https://github.com/JedWatson/react-select/issues/250","id":88829452,"number":250,"title":"Allow clicking mid-input to modify input contents (have a patch ready)","user":{"login":"trevorsenior","id":1592403,"avatar_url":"https://avatars.githubusercontent.com/u/1592403?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorsenior","html_url":"https://github.com/trevorsenior","followers_url":"https://api.github.com/users/trevorsenior/followers","following_url":"https://api.github.com/users/trevorsenior/following{/other_user}","gists_url":"https://api.github.com/users/trevorsenior/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorsenior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorsenior/subscriptions","organizations_url":"https://api.github.com/users/trevorsenior/orgs","repos_url":"https://api.github.com/users/trevorsenior/repos","events_url":"https://api.github.com/users/trevorsenior/events{/privacy}","received_events_url":"https://api.github.com/users/trevorsenior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-16T20:16:39Z","updated_at":"2015-06-21T11:50:34Z","closed_at":null,"body":"Currently when typing in the input you can use the arrow keys to navigate around the string and make adjustments to the input.\r\n\r\nIt is currently not possible to click in the middle of some text in the input to make the same modifications (you have to use the arrow keys to get to where you want to make the modification).\r\n\r\nThis can be fixed in the `handleMouseDown` function with a `setTimeout 0`, e.g. (rough es5 / non es6 playing around with it modification)\r\n\r\n```javascript\r\n// ... begin of fn\r\nsetTimeout(function() {\r\n    if (this.state.isFocused) {\r\n        this.setState({\r\n            isOpen: true\r\n        }, this._bindCloseMenuIfClickedOutside);\r\n    } else {\r\n        this._openAfterFocus = true;\r\n        this.getInputNode().focus();\r\n    }\r\n}.bind(this), 0);\r\n// ... end of fn\r\n```\r\n\r\nIf this is acceptable I'll make a pull request with the proper changes following the guidelines."},"comment":{"url":"https://api.github.com/repos/JedWatson/react-select/issues/comments/113889823","html_url":"https://github.com/JedWatson/react-select/issues/250#issuecomment-113889823","issue_url":"https://api.github.com/repos/JedWatson/react-select/issues/250","id":113889823,"user":{"login":"JedWatson","id":872310,"avatar_url":"https://avatars.githubusercontent.com/u/872310?v=3","gravatar_id":"","url":"https://api.github.com/users/JedWatson","html_url":"https://github.com/JedWatson","followers_url":"https://api.github.com/users/JedWatson/followers","following_url":"https://api.github.com/users/JedWatson/following{/other_user}","gists_url":"https://api.github.com/users/JedWatson/gists{/gist_id}","starred_url":"https://api.github.com/users/JedWatson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JedWatson/subscriptions","organizations_url":"https://api.github.com/users/JedWatson/orgs","repos_url":"https://api.github.com/users/JedWatson/repos","events_url":"https://api.github.com/users/JedWatson/events{/privacy}","received_events_url":"https://api.github.com/users/JedWatson/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T11:50:34Z","updated_at":"2015-06-21T11:50:34Z","body":"Thanks @trevorsenior, would definitely appreciate a PR for that!"}}