mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 00:20:00 +00:00
Updated mapbox-gl and react-sortable-hoc usage
This commit is contained in:
@@ -18,10 +18,10 @@ class StringInput extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps(props, state) {
|
||||
return {
|
||||
value: props.value || ''
|
||||
};
|
||||
componentDidUpdate(prevProps) {
|
||||
if(this.props.value !== prevProps.value) {
|
||||
this.setState({value: this.props.value})
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user