mirror of
https://github.com/maputnik/editor.git
synced 2026-06-16 04:07:27 +00:00
React v16.3.0 fixes.
This commit is contained in:
@@ -17,7 +17,7 @@ class NumberInput extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({ value: nextProps.value })
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class StringInput extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||
this.setState({ value: nextProps.value || '' })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user