react-spectrum
8455ade4 - v3 update internal stateRef for controlled components (#422)

Commit
6 years ago
v3 update internal stateRef for controlled components (#422) * Updating stateRef in useControlledState for controlled components If a component is controlled and it's controlled value prop changes, we need to update the internal stateRef so future onChange events properly trigger only if a different internal state value is provided * Merging if statements in useControlledState
Author
Committer
Parents
Loading