mirror of
https://github.com/maputnik/editor.git
synced 2026-08-28 16:07:28 +00:00
Tabs to spaces in input fields
This commit is contained in:
@@ -3,7 +3,7 @@ import inputStyle from './input.js'
|
||||
|
||||
/*** Number fields with support for min, max and units and documentation*/
|
||||
class StringField extends React.Component {
|
||||
static propTypes = {
|
||||
static propTypes = {
|
||||
onChange: React.PropTypes.func.isRequired,
|
||||
name: React.PropTypes.string.isRequired,
|
||||
value: React.PropTypes.string,
|
||||
@@ -16,7 +16,7 @@ static propTypes = {
|
||||
return this.props.onChange(value === "" ? null: value)
|
||||
}
|
||||
|
||||
render() {
|
||||
render() {
|
||||
return <div style={inputStyle.property}>
|
||||
<label style={inputStyle.label}>{this.props.name}</label>
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user