I'm using Bootstrap 8.x-3.0-beta2 on Drupal 8.0.1. Originally the menu allow you to expand one at a time. I added the following smooth toggle code for animation effects.

  $('li .dropdown-toggle').click(function() {

The script run very well. It has the smooth animation, but it does not auto collapse when I click on the other menu. I would like to expand the menu one at a time. How can I fix this?

**** Updated on Jan 12th 2016 ******
I have created a development site on Pantheon, which is "http://dev-cocoskin.pantheon.io".

  • Can you provide a snippet on a jsfiddle? – НЛО Dec 24 '15 at 20:46
  • @НЛО I will create a development site on Pantheon after Holiday. – CocoSkin Dec 25 '15 at 15:08
  • @НЛО please check the above update. – CocoSkin Jan 12 '16 at 16:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.