This repository was archived by the owner on Jun 3, 2024. It is now read-only.
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
Input without setProps doesn't get updated #415
Open
Description
It looks to me like an Input that doesn't have a setProps (i.e. not an Input dependency) will not get updated state or props:
componentWillReceiveProps(nextProps) {
if (this.props.setProps) {
this.props = nextProps;
if (this.props.debounce) {
this.setState({
value: nextProps.value,
});
}
}
}
Attached is a small repro.
inputUpdate.zip