Created by: blakeembrey
When clicking an item in the typeahead menu, the menu disappear after 150 milliseconds - which can be an issue for some users (especially since it disappears without selecting anything). This fix waits for the click or mouseup events (in case of click and drag). It prevents the mousedown event to avoid the input blur event.