Merge pull request #5177 from matrix-org/t3chguy/fix/15115
Fix create-react-class regression.pull/21833/head
commit
73b8493fe8
|
@ -57,11 +57,14 @@ export default class PowerSelector extends React.Component {
|
||||||
customValue: this.props.value,
|
customValue: this.props.value,
|
||||||
selectValue: 0,
|
selectValue: 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
this._initStateFromProps(this.props);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
|
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
|
UNSAFE_componentWillMount() {
|
||||||
|
this._initStateFromProps(this.props);
|
||||||
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line camelcase
|
// eslint-disable-next-line camelcase
|
||||||
UNSAFE_componentWillReceiveProps(newProps) {
|
UNSAFE_componentWillReceiveProps(newProps) {
|
||||||
this._initStateFromProps(newProps);
|
this._initStateFromProps(newProps);
|
||||||
|
|
Loading…
Reference in New Issue