react-spectrum
be058560 - Fix error class both value and defaultValue props (#677)

Commit
5 years ago
Fix error class both value and defaultValue props (#677) Fix error class '%s contains an input of type %s with both value and defaultValue props', I'm not sure this is the best way to do it, because this will silently protect people from having both value and defaultValue I don't want to remove defaultValue because aria should view that as an acceptable prop Maybe useControlledValue should export a function to remove the defaultValue and we call that in the component? seems like a lot to remember :(
Author
Parents
Loading