Hack to properly handle clicking on the typeahead dropdown. Fixes #1.