Fix dropdown not appearing on first click when collapsed

https://github.com/twitter/bootstrap/issues/5671#issuecomment-10259395