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

Dropdown box shifts to the right on page change in Rails app #28

Open
jhorsch opened this issue Dec 20, 2014 · 1 comment
Open

Dropdown box shifts to the right on page change in Rails app #28

jhorsch opened this issue Dec 20, 2014 · 1 comment

Comments

@jhorsch
Copy link

jhorsch commented Dec 20, 2014

Hi,

The select.js looks great and works perfectly on the initial page load.
https://www.luminoto.com/photos/trump-tower-chicago-black-white

However, when you go to a new page and click for the element, the drop down box shifts over to the right. (see attachment)

screen shot 2014-12-19 at 9 37 44 pm

I am running a web app with Rails and wondering if turbo links has anything to do with this issue.

Otherwise I am wondering if it is a css bug in my app. Has anyone else reported this same issue?

Thanks,
Jeff

@geekjuice
Copy link
Contributor

There is a good chance that Select is trying to initialize before the target element has fully rendered due to turbolinks. I would suggest looking into where you are initializing select and make sure it occurs after the turbolinks route has been fully resolved. If you can reproduce the issue in a jsfiddle or an example app, I'll be happy to take a look at it as well.

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

2 participants