fix dropdown event listener

fixes middle click in firefox and other issues
see also: https://github.com/twitter/bootstrap/pull/7211