mirror of
https://github.com/maputnik/editor.git
synced 2026-04-22 01:10:01 +00:00
React v16.3.0 fixes.
This commit is contained in:
@@ -37,7 +37,7 @@ export default class ZoomProperty extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
componentDidMount() {
|
||||
this.setState({
|
||||
refs: this.setStopRefs(this.props)
|
||||
})
|
||||
@@ -66,7 +66,7 @@ export default class ZoomProperty extends React.Component {
|
||||
return newRefs;
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
const newRefs = this.setStopRefs(nextProps);
|
||||
if(newRefs) {
|
||||
this.setState({
|
||||
|
||||
Reference in New Issue
Block a user