mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 07:30:00 +00:00
Fix UI when loading invalid style with duplicate layer ids.
Also fix for throwing error when 2 layers exist with empty strings as ids.
This commit is contained in:
@@ -79,6 +79,11 @@ class StringInput extends React.Component {
|
||||
this.props.onChange(this.state.value);
|
||||
}
|
||||
},
|
||||
onKeyDown: (e) => {
|
||||
if (e.keyCode === 13) {
|
||||
this.props.onChange(this.state.value);
|
||||
}
|
||||
},
|
||||
required: this.props.required,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user