mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 06:27:25 +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*/
|
/*** Number fields with support for min, max and units and documentation*/
|
||||||
class StringField extends React.Component {
|
class StringField extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onChange: React.PropTypes.func.isRequired,
|
onChange: React.PropTypes.func.isRequired,
|
||||||
name: React.PropTypes.string.isRequired,
|
name: React.PropTypes.string.isRequired,
|
||||||
value: React.PropTypes.string,
|
value: React.PropTypes.string,
|
||||||
@@ -16,7 +16,7 @@ static propTypes = {
|
|||||||
return this.props.onChange(value === "" ? null: value)
|
return this.props.onChange(value === "" ? null: value)
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <div style={inputStyle.property}>
|
return <div style={inputStyle.property}>
|
||||||
<label style={inputStyle.label}>{this.props.name}</label>
|
<label style={inputStyle.label}>{this.props.name}</label>
|
||||||
<input
|
<input
|
||||||
|
|||||||
Reference in New Issue
Block a user