Giter VIP home page Giter VIP logo

accessible-ui / checkbox Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 817 KB

๐Ÿ…ฐ An accessible and versatile checkbox component for React

Home Page: https://codesandbox.io/s/accessiblecheckbox-examples-epc8b

License: MIT License

JavaScript 7.56% TypeScript 92.44%
a11y a11y-checkbox a11y-switch aria aria-checkbox aria-switch checkbox checkbox-component react switch switch-component swithc

checkbox's People

Contributors

daphnesmit avatar jaredlunde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

checkbox's Issues

Controlled checked value of checkbox not working when you want to uncheck again

Dear jared!
I use your libs a lot since I like that they are fully accessible. So great work!

When making a bunch of controlled checkboxes I noticed that when I want to control the checked value from outside I need to press 2 times on the checkbox afterwards to uncheck the checkbox. I highly suspect that useSwitch is maybe not handling the toggling correctly. (we use a similiar thing called https://www.npmjs.com/package/use-binding)

I made codesandbox for this to demonstrate the issue.

https://codesandbox.io/s/admiring-aryabhata-1wy47?file=/src/App.tsx

If you press the button to check the checkbox and try to uncheck it using the checkbox itself you see you need to press to times.
Meanwhile I will try to see if I can find the issue!

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.