{"action":"created","issue":{"url":"https://api.github.com/repos/twitter/typeahead.js/issues/731","labels_url":"https://api.github.com/repos/twitter/typeahead.js/issues/731/labels{/name}","comments_url":"https://api.github.com/repos/twitter/typeahead.js/issues/731/comments","events_url":"https://api.github.com/repos/twitter/typeahead.js/issues/731/events","html_url":"https://github.com/twitter/typeahead.js/issues/731","id":28646353,"number":731,"title":"Avoid dropdown closing","user":{"login":"Gamempire","id":2010696,"avatar_url":"https://avatars.githubusercontent.com/u/2010696?v=3","gravatar_id":"","url":"https://api.github.com/users/Gamempire","html_url":"https://github.com/Gamempire","followers_url":"https://api.github.com/users/Gamempire/followers","following_url":"https://api.github.com/users/Gamempire/following{/other_user}","gists_url":"https://api.github.com/users/Gamempire/gists{/gist_id}","starred_url":"https://api.github.com/users/Gamempire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gamempire/subscriptions","organizations_url":"https://api.github.com/users/Gamempire/orgs","repos_url":"https://api.github.com/users/Gamempire/repos","events_url":"https://api.github.com/users/Gamempire/events{/privacy}","received_events_url":"https://api.github.com/users/Gamempire/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-03-03T18:58:41Z","updated_at":"2015-05-12T22:50:50Z","closed_at":"2014-03-07T08:20:10Z","body":"How to accomplish it with the new version? Before 0.10 I did:\r\n\r\n    $(element).data(\"ttView\").dropdownView.close = function() { };\r\n    $(element).parent().click(function(e) {\r\n        e.stopPropagation();\r\n    });\r\n    $('body').click(function() {\r\n        $(element).typeahead('val', '');\r\n    });\r\n\r\nBut now it doesn't work.\r\n\r\nThanks fot the replies"},"comment":{"url":"https://api.github.com/repos/twitter/typeahead.js/issues/comments/101450129","html_url":"https://github.com/twitter/typeahead.js/issues/731#issuecomment-101450129","issue_url":"https://api.github.com/repos/twitter/typeahead.js/issues/731","id":101450129,"user":{"login":"worleydl","id":615271,"avatar_url":"https://avatars.githubusercontent.com/u/615271?v=3","gravatar_id":"","url":"https://api.github.com/users/worleydl","html_url":"https://github.com/worleydl","followers_url":"https://api.github.com/users/worleydl/followers","following_url":"https://api.github.com/users/worleydl/following{/other_user}","gists_url":"https://api.github.com/users/worleydl/gists{/gist_id}","starred_url":"https://api.github.com/users/worleydl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/worleydl/subscriptions","organizations_url":"https://api.github.com/users/worleydl/orgs","repos_url":"https://api.github.com/users/worleydl/repos","events_url":"https://api.github.com/users/worleydl/events{/privacy}","received_events_url":"https://api.github.com/users/worleydl/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T22:50:50Z","updated_at":"2015-05-12T22:50:50Z","body":"Well putting a click handler in and stopping the propagation works too, so I don't know if it's necessary to mod the library."}}