From http://stackoverflow.com/questions/14585542/jquery-autocomplete-deactivates-bootstrap-menu-dropdown