{"action":"created","issue":{"url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/9","labels_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/9/comments","events_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/9/events","html_url":"https://github.com/appiphony/appiphony-lightning-js/issues/9","id":117613603,"number":9,"title":"Lookup not populating when selecting a result","user":{"login":"emileBled","id":11817888,"avatar_url":"https://avatars.githubusercontent.com/u/11817888?v=3","gravatar_id":"","url":"https://api.github.com/users/emileBled","html_url":"https://github.com/emileBled","followers_url":"https://api.github.com/users/emileBled/followers","following_url":"https://api.github.com/users/emileBled/following{/other_user}","gists_url":"https://api.github.com/users/emileBled/gists{/gist_id}","starred_url":"https://api.github.com/users/emileBled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emileBled/subscriptions","organizations_url":"https://api.github.com/users/emileBled/orgs","repos_url":"https://api.github.com/users/emileBled/repos","events_url":"https://api.github.com/users/emileBled/events{/privacy}","received_events_url":"https://api.github.com/users/emileBled/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"djlimbs","id":4561661,"avatar_url":"https://avatars.githubusercontent.com/u/4561661?v=3","gravatar_id":"","url":"https://api.github.com/users/djlimbs","html_url":"https://github.com/djlimbs","followers_url":"https://api.github.com/users/djlimbs/followers","following_url":"https://api.github.com/users/djlimbs/following{/other_user}","gists_url":"https://api.github.com/users/djlimbs/gists{/gist_id}","starred_url":"https://api.github.com/users/djlimbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djlimbs/subscriptions","organizations_url":"https://api.github.com/users/djlimbs/orgs","repos_url":"https://api.github.com/users/djlimbs/repos","events_url":"https://api.github.com/users/djlimbs/events{/privacy}","received_events_url":"https://api.github.com/users/djlimbs/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-11-18T15:40:52Z","updated_at":"2015-11-18T19:25:09Z","closed_at":null,"body":"I created this lookup:\r\n```\r\n<div class=\"slds-lookup slds-form-element slds-col--padded slds-size--1-of-2 slds-no-flex\" data-select=\"single\" data-scope=\"single\">\r\n\t<label class=\"slds-form-element__label\" for=\"staff\">Staff</label>\r\n\t<div class=\"slds-form-element__control slds-input-has-icon slds-input-has-icon--right\">\r\n\t\t<svg aria-hidden=\"true\" class=\"slds-input__icon\">\r\n\t\t\t<use xlink:href=\"{!URLFOR($Resource.SLDS011, '/assets/icons/utility-sprite/svg/symbols.svg#search')}\"></use>\r\n\t\t</svg>\r\n\t\t<input id=\"staff\" class=\"slds-input\" type=\"text\" aria-autocomplete=\"list\" role=\"combobox\" aria-expanded=\"true\" aria-activedescendant=\"\"/>\r\n\t</div>\r\n</div>\r\n```\r\nThen I initialized it like this:\r\n```\r\n$('#staff').lookup({\r\n\temptySearchTermQuery: function(callback) {\r\n\t\tcallback(staff);\r\n\t},\r\n\tfilledSearchTermQuery: function(searchTerm, callback) {\r\n\t\tcallback(staff.filter(function(staff) {\r\n\t\t\tregexSearch = new RegExp(searchTerm, 'i');\r\n\t\t\treturn staff.label.match(regexSearch) !== null;\r\n\t\t}));\r\n\t},\r\n\tobjectIconUrl: '{!URLFOR($Resource.SLDS011, \"/assets/icons/standard-sprite/svg/symbols.svg#account\")}',\r\n\tobjectLabel: 'Staff',\r\n\tobjectPluralLabel: 'Staff'\r\n});\r\n```\r\n\r\nThis generates and filters the records list as intended but when you click on a record from the list nothing happens and there's not an option to handle this with a custom function so this renders the whole component useless."},"comment":{"url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/comments/157830826","html_url":"https://github.com/appiphony/appiphony-lightning-js/issues/9#issuecomment-157830826","issue_url":"https://api.github.com/repos/appiphony/appiphony-lightning-js/issues/9","id":157830826,"user":{"login":"djlimbs","id":4561661,"avatar_url":"https://avatars.githubusercontent.com/u/4561661?v=3","gravatar_id":"","url":"https://api.github.com/users/djlimbs","html_url":"https://github.com/djlimbs","followers_url":"https://api.github.com/users/djlimbs/followers","following_url":"https://api.github.com/users/djlimbs/following{/other_user}","gists_url":"https://api.github.com/users/djlimbs/gists{/gist_id}","starred_url":"https://api.github.com/users/djlimbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djlimbs/subscriptions","organizations_url":"https://api.github.com/users/djlimbs/orgs","repos_url":"https://api.github.com/users/djlimbs/repos","events_url":"https://api.github.com/users/djlimbs/events{/privacy}","received_events_url":"https://api.github.com/users/djlimbs/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T19:25:09Z","updated_at":"2015-11-18T19:25:09Z","body":"It seems to be an issue with Firefox/Safari/IE 10 not providing the blur event's relatedTarget. We are investigating a work-around to address this."}}