{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/6170","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/6170/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/6170/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/6170/events","html_url":"https://github.com/ant-design/ant-design/issues/6170","id":229152272,"number":6170,"title":"Autocomplete's filtering","user":{"login":"froston","id":24678624,"avatar_url":"https://avatars0.githubusercontent.com/u/24678624?v=3","gravatar_id":"","url":"https://api.github.com/users/froston","html_url":"https://github.com/froston","followers_url":"https://api.github.com/users/froston/followers","following_url":"https://api.github.com/users/froston/following{/other_user}","gists_url":"https://api.github.com/users/froston/gists{/gist_id}","starred_url":"https://api.github.com/users/froston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froston/subscriptions","organizations_url":"https://api.github.com/users/froston/orgs","repos_url":"https://api.github.com/users/froston/repos","events_url":"https://api.github.com/users/froston/events{/privacy}","received_events_url":"https://api.github.com/users/froston/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-16T20:02:26Z","updated_at":"2017-05-17T01:24:51Z","closed_at":null,"body":"### What problem does this feature solve?\r\nThere may already be some solution to this, but I couldn't figure out anything.\r\nThe problem is with automplete's filtering. When there is a value filtered and user opens the dropdown up, only the filtered option is shown. This may give an impression to user that this is the only option. He must manually delete the value in order to see all the available options again.\r\n\r\n\r\n### What does the proposed API look like?\r\nI was trying to improve this default funcionality by deleting the value on focus, so every time the dropdown opens up all values appears again. Problem is that `onFocus` event is called not only when user wants to change the value (focusing by tab key).\r\nThen I thought to have an event, kind of `onOpen` which would delete the value and show all the options. `onFocus` in this case would not do anything.\r\nWhat do you think? Is there a solution to this already?\r\nThank you very much!\r\n\r\n<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/301959014","html_url":"https://github.com/ant-design/ant-design/issues/6170#issuecomment-301959014","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/6170","id":301959014,"user":{"login":"ybning","id":3725612,"avatar_url":"https://avatars1.githubusercontent.com/u/3725612?v=3","gravatar_id":"","url":"https://api.github.com/users/ybning","html_url":"https://github.com/ybning","followers_url":"https://api.github.com/users/ybning/followers","following_url":"https://api.github.com/users/ybning/following{/other_user}","gists_url":"https://api.github.com/users/ybning/gists{/gist_id}","starred_url":"https://api.github.com/users/ybning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybning/subscriptions","organizations_url":"https://api.github.com/users/ybning/orgs","repos_url":"https://api.github.com/users/ybning/repos","events_url":"https://api.github.com/users/ybning/events{/privacy}","received_events_url":"https://api.github.com/users/ybning/received_events","type":"User","site_admin":false},"created_at":"2017-05-17T01:24:51Z","updated_at":"2017-05-17T01:24:51Z","body":"@froston \r\nCould you provide a re-producible demo to help us, by forking and editing this codepen:\r\n[http://codepen.io/benjycui/pen/KgPZrE?editors=001](http://codepen.io/benjycui/pen/KgPZrE?editors=001)\r\n\r\n(A good and minimum codpen will save a lot of time 😃)"}}
{"actor":{"display_login":"ybning"}}