javascript - Bootstrap drowpdown not working in Meteor -
folks. i'm working on meteor application , have following section in navigation template meant render dynamically built dropdown menu.
for reason, it's not dropping down, , have no idea why.
i'm using twbs:boostrap
package provide bootstrap.
template section:
<ul class="nav navbar-nav"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">browse <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> {{#each categories}} <li><a href="{{pathfor 'browse' slug=this.slug}}">{{name}}</a></li> {{/each}} </ul> </li> </ul>
categories helper:
template.registerhelper('categories', function() { return categories.find(); });
when inspect dom on page, menu there, , followed documentation on bootstrap's website make sure have right, have no idea i'm doing wrong. paths being generated correctly iron router (pathfor
).
any appreciated.
it turns out must wrong twbs:bootstrap package, because if use version of bootstrap cdn, seems work fine.
thanks eric assistance , response, helped.
Comments
Post a Comment