|
|
@ -49,8 +49,8 @@ static getDerivedStateFromProps(props, state) { |
|
|
|
if (props.value !== state.controlledValue) { |
|
|
|
return { |
|
|
|
// Since this method fires on both props and state changes, local updates |
|
|
|
// to the controlled value will be ignored, since the props version always |
|
|
|
// overrides it. Oops! |
|
|
|
// to the controlled value will be ignored, because the props version |
|
|
|
// always overrides it. Oops! |
|
|
|
controlledValue: props.value, |
|
|
|
}; |
|
|
|
} |
|
|
|