GithubHelp home page GithubHelp logo

Comments (9)

vvo avatar vvo commented on June 25, 2024

@patrickdevivo unfortunately we are a bit stuck here because nouislider upgraded in ways it's not easy to upgrade for us since we are using it in instantsearch.js.

If you are looking for good sliders in the react world, I advise you to have a look at https://github.com/airbnb/rheostat or http://react-component.github.io/slider/

so that this react wrapper can work properly.

It's not working right now?

from react-nouislider.

leongersen avatar leongersen commented on June 25, 2024

@vvo Can you be more specific about the issues in upgrading nouislider?

from react-nouislider.

adekbadek avatar adekbadek commented on June 25, 2024

It looks like the algolia fork is behind the original nouislider by one version. So it's misleading to say that react-nouislider wraps nouislider while in fact it wraps a fork of it.

The original nouislider changed how the 'connect' option works, and while the propTypes were updated by #32, the nouislider-algolia-fork is not up to date with the underlying changes in 'connect' option.

from react-nouislider.

vvo avatar vvo commented on June 25, 2024

@leongersen Mostly the fact that nouislider went from supporting two handles to multiple handles, while we were relying on various CSS classes (like lower upper), last time I tried to migrate to new nouislider in instantsearch.js I was stuck, required a lot of work, while right now it's not necessary for us.

Ultimately what we could do is declare nouislider as a peerDependency so you can continue using it and we can use the previous version.

from react-nouislider.

leongersen avatar leongersen commented on June 25, 2024

@vvo In noUiSlider 9.1.0 (released just now), the .noUi-handle-lower and .noUi-handle-upper classes were re-added*, and the connect options 'lower' and 'upper' are now automatically re-mapped to the new array syntax. With these changes, updating noUiSlider from 8.x to 9.x should be painless.

Could you reconsider updating this package so people using it can benefit from the new features and fixes in the original lib?

* They were removed because they make less sense when you use more than two handles, but if you do use two handles they're useful as always.

from react-nouislider.

vvo avatar vvo commented on June 25, 2024

@leongersen That's kind of awesome, I will put this on my TODO list and check it's ok instantsearch.js wise.

from react-nouislider.

sahaam avatar sahaam commented on June 25, 2024

Is the package is updated yet ?

from react-nouislider.

ducminhn avatar ducminhn commented on June 25, 2024

It's looking like the package hasn't been updated yet, although the nouislider has been updated on Dec 10, 2016

I'm trying to create a custom component that use the new version of nouislider. If anyone has it done, please share!

Cheers.

from react-nouislider.

vvo avatar vvo commented on June 25, 2024

Sorry we are not maintaining this repository anymore for now. I recommend using something like https://github.com/airbnb/rheostat

from react-nouislider.

Related Issues (20)

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.