Reputation: 13
I am currently using Rails 4 and Bootstrap 3 and am having issues with the dropdown's in my navbar consistently dropping down. I'm finding that they will work from certain pages (landing page) but once I navigate to another page from the navbar the drop down will no longer activate when clicked.
I can supply whatever code would be helpful to identify the problem.
I'm using the twitter-bootstrap-rails gem at the bootstrap3 branch.
Thanks!
Upvotes: 1
Views: 634
Reputation: 2441
This is due to turbolinks which does not trigger the document.ready event.
As i said in an other topic, you can disable turbolinks only for one link by adding data-no-turbolink='true'
to your link tag, or for all you application by simply removing the turbolinks gem.
You also can do a home-made patch: see here
Upvotes: 4