Coder Social home page Coder Social logo

Comments (6)

Aidurber avatar Aidurber commented on August 12, 2024

@erokhin74 Make sure you're using a React version higher than 16.3.0. I'll update the existing codesandboxes.

from react-picky.

erokhin74 avatar erokhin74 commented on August 12, 2024

My current React version is "16.4.2". It is higher than 16.3.0 but the select-all-checkbox works a little wrong as I wrote here.

from react-picky.

Aidurber avatar Aidurber commented on August 12, 2024

@erokhin74 My apologies. I'll investigate after work.

from react-picky.

randymorris avatar randymorris commented on August 12, 2024

After digging in a bit my issue turned out to be unrelated. I've deleted my comments and opened another ticket to keep this thread on topic. Sorry for the noise.

from react-picky.

randymorris avatar randymorris commented on August 12, 2024

After some more thinking about this specific issue, I think I've figured out why this happens.

Whenever the select all state is checked, order of options and values is expected to be the same. However, whenever an item is added to the values it is added to the end of the list. Thus, if we have options = [1, 2, 3] and values = [1, 2, 3] the select all state would be correct. If we uncheck 1, then recheck 1, the values would be [2, 3, 1] which no longer matches the options.

This also explains why the last value in the list doesn't exhibit this behavior, because it's already at the end of the list.

from react-picky.

Aidurber avatar Aidurber commented on August 12, 2024

🎉 This issue has been resolved in version 4.4.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

from react-picky.

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.