Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-switch

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-switch - npm Package Versions

134

4.0.0

Diff

Changelog

Source

[4.0.0 - 2019-01-30]

Changed

  • The switch now includes a hidden nested checkbox input, which creates an expience more akin to a normal checkbox - clicking on the label will now cause a toggle, and the VoiceOver screen reader will now reliably read the label.
  • The switch will now always fire the onChange event if the dragStop event occurs <250ms after the dragStart event since that feels like a click.
  • Aria role changed from "checkbox" to "switch".
  • Pressing enter no longer activates the switch (spacebar still does)

Added

  • Add new tabIndex prop

Fixed

  • Fix glitch where the clicking the handle wouldn't trigger onChange event when browser window was out of focus on Windows.
yogaboll
published 4.0.0-beta.0 •

yogaboll
published 4.0.0-alpha.0 •

yogaboll
published 3.0.4 •

yogaboll
published 3.0.3 •

Changelog

Source

[3.0.3 - 2018-06-15]

Fixed

  • Fix glitch where the switch would disintegrate if it had a parent with text-align set to center or right
yogaboll
published 3.0.2 •

Changelog

Source

[3.0.2 - 2018-06-07]

Changed

  • Add the correct gzip badge.
yogaboll
published 3.0.1 •

Changelog

Source

[3.0.1 - 2018-06-07]

Changed

  • Some more byte shaving.
yogaboll
published 3.0.0 •

Changelog

Source

[3.0.0 - 2018-06-07]

Changed

  • Shave off some extra bytes by setting interop: false in rollup config.

Fixed

  • Fix peculiar glitch when used with preact-compat.
yogaboll
published 3.0.0-beta.0 •

Changelog

Source

[3.0.0-beta.0 - 2018-06-06]

Changed

  • Project structure was completely revamped to reduce bundle size:
  1. Use rollup to bundle the different source files.
  2. Use buble instead of babel for transpiling since it produces tinier output.
  3. Remove prop-types from production mode. Prop-types are still there in development mode so developer experience is unchanged.
  4. Mangle property names with uglify by putting a $-sign at the start of the properties that are safe to mangle.

Fixed

  • Corrected more dead links in README. Thanks, Valery Bugakov.
yogaboll
published 2.3.2 •

Changelog

Source

[2.3.2 - 2018-04-20]

Fixed

  • Corrected dead links in README
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc