Giter VIP home page Giter VIP logo

Comments (10)

bodrovis avatar bodrovis commented on August 23, 2024

All in all, this issue should not be reported here, because this is merely a gem that hooks slick itself https://github.com/kenwheeler/slick/

Still, judging by your description it seems you are using turbolinks. Is that correct? If yes, use https://rubygems.org/gems/jquery-turbolinks as well to restore original jQuery events.

from jquery-slick-rails.

bodrovis avatar bodrovis commented on August 23, 2024

Closed due to inactivity. If the suggested solution does not help, feel free to reopen the issue.

from jquery-slick-rails.

raldred avatar raldred commented on August 23, 2024

Unfortunately jquery.turbolinks doesn't work with turbolinks 5 (yet)
kossnocorp/jquery.turbolinks#56

New Turbolinks handles things better, but I still had issues with slick not initialising properly after a turbolinks:load event. However upgrading to slick 1.6.0 seemed to resolve it

from jquery-slick-rails.

bodrovis avatar bodrovis commented on August 23, 2024

Well, that's too bad, but please understand that this is simply a wrapper for the Slick library, so it's not the best place to report such issues. What I recommend doing is searching for similar issues on StackOverflow or asking a question... I will try and and see if I can update the demo app https://github.com/bodrovis/jquery-slick-rails-demo and introduce turbolinks there to reproduce the issue.

from jquery-slick-rails.

bodrovis avatar bodrovis commented on August 23, 2024

@raldred All in all, I was able to get it working with Turbolinks https://github.com/bodrovis/jquery-slick-rails-demo/blob/master/app/assets/javascripts/initialize.coffee#L1 You may use that demo app a reference.

from jquery-slick-rails.

raldred avatar raldred commented on August 23, 2024

I totally understand this gem is purely a wrapper for asset pipeline but I
thought it would be useful to let others know what's going on who arrive
here from searching as I did.
Yes using turbolinks:load does resolve it as long as you have the latest
jquery-slick-rails.

On Thu, 26 May 2016, 18:43 Ilya Bodrov-Krukowski, [email protected]
wrote:

All in all, I was able to get it working with Turbolinks
https://github.com/bodrovis/jquery-slick-rails-demo/blob/master/app/assets/javascripts/initialize.coffee#L1
You may use that demo app a reference.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#16 (comment)

from jquery-slick-rails.

bodrovis avatar bodrovis commented on August 23, 2024

@raldred Okay, great. No more issues with turbolinks for now?

from jquery-slick-rails.

chevinbrown avatar chevinbrown commented on August 23, 2024

I am having trouble with turbolinks 5 still.

from jquery-slick-rails.

bodrovis avatar bodrovis commented on August 23, 2024

@chevinbrown Did you try to use this https://github.com/bodrovis/jquery-slick-rails-demo app as a reference? What issue are you having. P.S. And once again - this is a wrapper around Slick library, so I am not in charge of the JS code.

from jquery-slick-rails.

chevinbrown avatar chevinbrown commented on August 23, 2024

No, I solved it...I needed to wrap my slide images in an empty div...I'm not sure that's in the docs anywhere, but I'll follow up with the author. @bodrovis, thanks for the quick reply.

from jquery-slick-rails.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.