Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8466189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:16:06+00:00 2026-06-10T15:16:06+00:00

I am currently using 2.x Bootstrap version for my single-page application. On the desktop,

  • 0

I am currently using 2.x Bootstrap version for my single-page application.

On the desktop, it works fine.

However on my ipad and mobile phones, it shows a nav button which is good. However, when I click an item in the dropdown item shown, it does not close automatically.

Since, it’s a single page app, I find it annoying to click it again to hide to look at the contents.

I tried collapse(‘hide’) when li is clicked on nav-collapse elements but it hides other li elements in the dropdown menus.

$(‘.nav-collapse > li’).click(function(e)
$(this).collapse(‘hide’)

What’s the best way to hide when a link is clicked?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:16:08+00:00Added an answer on June 10, 2026 at 3:16 pm

    There is a bug in Twitter Bootstrap’s Dropdown plugin (see Issue #4497) which was introduced in 2.1.0 and inadvertently blocks the click events on dropdown menu items. It should be fixed in 2.1.1.

    If you are using a CDN or simply don’t want to edit/recompile the bootstrap-dropdown.js, you can just add the following workaround to your page, loading it after bootstrap:

    $('body')
      .off('click.dropdown touchstart.dropdown.data-api', '.dropdown')
      .on('click.dropdown touchstart.dropdown.data-api'
        , '.dropdown form'
        , function (e) { e.stopPropagation() })
    

    If you are hosting your own code, and are comfortable building the bootstrap.min.js, then you can make the following edit to bootstrap-dropdown.js on line 145:

    '.dropdown'
    

    should be changed to

    '.dropdown form'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a distributed cache using EHCache via RMI that works just fine.
I'm currently using the Initializr generated Bootstrap enhanced version of the HTML5 Boilerplate which
I'm using Twitter's Bootstrap library, version 2.0.3 to prototype a website. I'm currently using
Is it OK to implement Modernizr with Twitter Bootstrap? I'm currently using Bootstrap with
I'm not currently using twitter bootstrap, but I do like some of the components.
Currently using MySQL version 5.1.6 This is my first real world build and so
I'm currently using popovers with Twitter Bootstrap, initiated like this: $('.popup-marker').popover({ html: true, trigger:
I'm currently using tabs with Twitter Bootstrap and want to select the same tab
I am using jruby-1.6.6 with rails 3.2 currently. And I am using gem 'bootstrap-sass',
I am currently integrating twitter bootstrap. My application layout currently includes my flash messages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.