bootstrap 3, problems with collapsed menu over slideshow -


i have site in development looking ok, have problem occurs collapsed menu, , on home page.

on homepage there full width slideshow, if try , navigate dropdown item, eg gallery, menu closes. isn't issue on other page, , finding difficult debug.

http://test.forthwebsolutions.com

this common twitter bootstrap behavior using data-toggle="dropdown".

to avoid this, simplest trick - attach click event handler on internal dropdown menu , add event.stoppropagation(). so.

$('li.dropdown.inside-dropdown-menu').on('click', function(event){     // event won't propagated document node ,      // therefore delegated events won't fired     event.stoppropagation(); }); 

and need add class mentioned above internal dropdown menus. example:

<li class="dropdown inside-dropdown-menu">     <a href="#" class="dropdown-toggle" data-toggle="dropdown">galleries <i class="fa fa-angle-down"></i></a>     <ul class="dropdown-menu open">         <li><a href="/gallery.php">image gallery</a></li>         <li><a href="/video_gallery.php">video gallery</a></li>     </ul> </li> 

additional information : if curious, there alternative methods if not want use event.stoppropagation() mentioned here in thread


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -