Loading
The source project of this merge request has been removed.
fix: remove unnecessary props from switch
The helperText/error props that were being passed to the switch component were causing issues as they do not exist for the switch itself, only for the input. As far as I can tell there is no situation where we need to pass those to a switch component as the switch value itself can never be invalid.
I removed the props entirely from the formikSwitchProps and double checked for potential side effects from that, but everything looks stable.
If someone has concerns or finds something I missed as to why we would need these fields please let me know, as we can potentially pass them to the input component of the switch.
Closes #2616