react-switch v6.0.0 Release NotesRelease Date: 2021-01-06 // 9 months ago
- ➕ Add custom handle icons (@morinted)
- ➕ Add
- ➕ Add borderRadius prop
- Prevent setState from being called after component is unmounted (@smhg)
- 🚚 When the
checkedstate is not changed in the
onChangecallback, 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
onChangecallback 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
- Minor typescript definition fix.