{"action":"opened","issue":{"url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/7","labels_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/7/comments","events_url":"https://api.github.com/repos/cheonhyangzhang/paper-typeahead-input/issues/7/events","html_url":"https://github.com/cheonhyangzhang/paper-typeahead-input/issues/7","id":114818476,"number":7,"title":"Support repeatedly selecting suggestions in FF and IE","user":{"login":"torsjonas","id":10170099,"avatar_url":"https://avatars.githubusercontent.com/u/10170099?v=3","gravatar_id":"","url":"https://api.github.com/users/torsjonas","html_url":"https://github.com/torsjonas","followers_url":"https://api.github.com/users/torsjonas/followers","following_url":"https://api.github.com/users/torsjonas/following{/other_user}","gists_url":"https://api.github.com/users/torsjonas/gists{/gist_id}","starred_url":"https://api.github.com/users/torsjonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsjonas/subscriptions","organizations_url":"https://api.github.com/users/torsjonas/orgs","repos_url":"https://api.github.com/users/torsjonas/repos","events_url":"https://api.github.com/users/torsjonas/events{/privacy}","received_events_url":"https://api.github.com/users/torsjonas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T13:44:28Z","updated_at":"2015-11-03T13:44:28Z","closed_at":null,"body":"It appears that selecting a suggestion only works as expected one time in FF and IE. After this, when selecting a suggestion the index of the selected suggestion is not correct/undefined and the inputValue is set to undefined.\r\n\r\nThis can be repeated on the demo page of paper-typeahead-input:\r\nhttp://cheonhyangzhang.github.io/paper-typeahead-input/components/paper-typeahead-input/\r\n\r\nOn the demo page for entering US states, in FF or IE\r\n1. Select Oregon. Oregon is set as the inputValue.\r\n2. Select Washington. undefined is set as the inputValue.\r\n\r\nI have managed to avoid this problem in IE and FF with the following code in the _select function:\r\n```javascript\r\n// For some reason this only works in Chrome (and only the first time in IE and FF)\r\n// index = Number(suggestionsMenu.indexOf(selectedItem));\r\n\r\n// Works in FF and IE\r\nindex = this._suggestions.indexOf(e.model.item);\r\nthis.inputValue = this._suggestions[index];\r\n```"}}