react-switch v6.0.0 Release Notes

Release Date: 2021-01-06 // 9 months ago
  • ➕ Added

    • ➕ Add custom handle icons (@morinted)
    • ➕ Add aria-checked attribute (@monicahung)
    • ➕ Add borderRadius prop

    🛠 Fixed

    • Prevent setState from being called after component is unmounted (@smhg)

    🔄 Changed

    • 🚚 When the checked state is not changed in the onChange callback, the switch will now go back to its previous position instead of getting stuck halfway. This means the switch will move back and forth if the onChange callback changes the state after an asynchronous operation.
    • 👌 Support react and react-dom 17 as peer dependencies
    • ⚡️ Update all dev depencies

Previous changes from v5.0.1

  • 🛠 Fixed

    • Minor typescript definition fix.