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

Does not work in certain condition on mobile #30

Closed
Rich-Hopkins opened this issue Jun 7, 2017 · 2 comments
Closed

Does not work in certain condition on mobile #30

Rich-Hopkins opened this issue Jun 7, 2017 · 2 comments

Comments

@Rich-Hopkins
Copy link

Hello, and thank you for this code. I greatly appreciate it. I'm teaching myself AngularJS and am using it to rebuild a website, and found your library to duplicate what I was doing with jQuery-UI on the old website. I have found a problem, though, and since I'm a noob, I'm not sure how to fix it.

I have the site up at a temporary location right now. I have one page (fpcdev.azurewebsites.net/about) that did have two separate accordions, but when viewed on mobile, the top accordion did not function. I changed it all to be in one accordion, but with that, none of it works on mobile. I can duplicate this in a desktop browser by making the browser narrow. It seems to be at the point where the bootstrap class changes from "col-md-8 col-md-offset-2" to "col-xs-12" where the problem occurs. If I remove the col-xs-12 from the class of the div, the accordion works properly.

Do you have any suggestions for me? I greatly appreciate it.

@Rich-Hopkins
Copy link
Author

A little more trial-and-error and I have it working on my phone. I removed the col-xs-12 and replaced it with col-sm-12, and it works. Apparently something is conflicting in the col-xs-12 class. Again, thank you for sharing your code.

@Rich-Hopkins
Copy link
Author

I ended up switching to the Angular ui-Bootstrap Accordion.

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

1 participant