{"action":"created","issue":{"url":"https://api.github.com/repos/prakhar1989/react-tags/issues/91","repository_url":"https://api.github.com/repos/prakhar1989/react-tags","labels_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/91/comments","events_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/91/events","html_url":"https://github.com/prakhar1989/react-tags/pull/91","id":168184093,"number":91,"title":"Add props.filterSuggestion","user":{"login":"malantonio","id":2744987,"avatar_url":"https://avatars.githubusercontent.com/u/2744987?v=3","gravatar_id":"","url":"https://api.github.com/users/malantonio","html_url":"https://github.com/malantonio","followers_url":"https://api.github.com/users/malantonio/followers","following_url":"https://api.github.com/users/malantonio/following{/other_user}","gists_url":"https://api.github.com/users/malantonio/gists{/gist_id}","starred_url":"https://api.github.com/users/malantonio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malantonio/subscriptions","organizations_url":"https://api.github.com/users/malantonio/orgs","repos_url":"https://api.github.com/users/malantonio/repos","events_url":"https://api.github.com/users/malantonio/events{/privacy}","received_events_url":"https://api.github.com/users/malantonio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-28T20:05:22Z","updated_at":"2016-07-30T12:33:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/prakhar1989/react-tags/pulls/91","html_url":"https://github.com/prakhar1989/react-tags/pull/91","diff_url":"https://github.com/prakhar1989/react-tags/pull/91.diff","patch_url":"https://github.com/prakhar1989/react-tags/pull/91.patch"},"body":"This was being discussed in #73 and as I was writing up a comment on how it could be implemented, it seemed easier to just provide a PR.\r\n\r\nThis adds a `filterSuggestion` prop for a function that's passed to `suggestions.filter`. The query value is bound, so the signature becomes:\r\n\r\n```javascript\r\nfunction filterSuggestion(query, suggestion, index, suggestionArray) { /*...*/ }\r\n```\r\n\r\nI've also set the `defaultProp` to match the original filter function, so the original behavior remains.\r\n\r\nLet me know what you think; I'm happy to make changes where needed!"},"comment":{"url":"https://api.github.com/repos/prakhar1989/react-tags/issues/comments/236362901","html_url":"https://github.com/prakhar1989/react-tags/pull/91#issuecomment-236362901","issue_url":"https://api.github.com/repos/prakhar1989/react-tags/issues/91","id":236362901,"user":{"login":"prakhar1989","id":649249,"avatar_url":"https://avatars.githubusercontent.com/u/649249?v=3","gravatar_id":"","url":"https://api.github.com/users/prakhar1989","html_url":"https://github.com/prakhar1989","followers_url":"https://api.github.com/users/prakhar1989/followers","following_url":"https://api.github.com/users/prakhar1989/following{/other_user}","gists_url":"https://api.github.com/users/prakhar1989/gists{/gist_id}","starred_url":"https://api.github.com/users/prakhar1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prakhar1989/subscriptions","organizations_url":"https://api.github.com/users/prakhar1989/orgs","repos_url":"https://api.github.com/users/prakhar1989/repos","events_url":"https://api.github.com/users/prakhar1989/events{/privacy}","received_events_url":"https://api.github.com/users/prakhar1989/received_events","type":"User","site_admin":false},"created_at":"2016-07-30T12:33:39Z","updated_at":"2016-07-30T12:33:39Z","body":"Hi @malantonio, thanks for sending in the PR. I think this looks great, but there's parallel work going on in #92. I would recommend that you give that a look and see if that sounds like a good implementation. Also, feel free to help out in that PR, if you so prefer. Thanks :)"}}
{"actor":{"display_login":"prakhar1989"}}