Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop down menu on sign in #198

Open
MaratAkhmatnurov opened this issue Jan 29, 2016 · 10 comments
Open

Drop down menu on sign in #198

MaratAkhmatnurov opened this issue Jan 29, 2016 · 10 comments

Comments

@MaratAkhmatnurov
Copy link

When I'm clicking to "sign in/Join", nothing's going on. Drop down menu doesn't shown

@advikguha
Copy link

I'm having the same problem. Did you find a fix?

@pechitook
Copy link

Same here. I'm using the bootstrap-sass package

@pechitook
Copy link

So I found a solution. Turns out that somehow bootstrap is not initializing the dropdown. If I manually run $('.dropdown-toggle').dropdown() after the page loads, it works.

The following patch makes it work again, but @ianmartorell you should check this out when you have some time to see if you can replicate the error.

Template._loginButtonsLoggedOutDropdown.rendered = function() {
    $('.dropdown-toggle').dropdown()
}

Template._loginButtonsLoggedInDropdown.rendered = function() {
    $('.dropdown-toggle').dropdown()
}

@mgebundy
Copy link

Thanks @p4bloch

Easy fix, but regressions make me a sad panda.

@pechitook
Copy link

Glad it worked for you too @mgebundy!

@mherb63
Copy link

mherb63 commented Mar 31, 2016

I have the same issue. Is there a way to fix this in css?

@p4bloch where did you put your Template code? I have my nav template in nav.html and tried your solution in nav.js but it didn't make a difference.

image

@pechitook
Copy link

@mherb63 I placed it in my JS file as well, not sure why it's not working for you. Are you on latest version? I believe the .rendered API had some changes over time. You can try this syntax

Template.MyTemplate.onRendered(function () {
 // code
});

@mherb63
Copy link

mherb63 commented Apr 1, 2016

@p4bloch yes, I used onRendered. This problem only happens for me when the page size is that of an IPhone 6. The issue appears when running on an XCode simulator.

@ShakataGaNai
Copy link

Just chiming in on this to note that I've also run into this error. My project was idle for a while so I just upgraded all the packages and to meteor 1.4.0.1. The package versions I have:

twbs:bootstrap 3.3.6
ian:accounts-ui-bootstrap-3 1.2.89

(Note, I used @p4bloch fix and I'm good for now.)

@joaoeffting
Copy link

Same problem here :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants