Forms & Last Step
- fixed issues on forms - added defaultValue on text/textarea fields - added all actions on step 3
This commit is contained in:
@@ -10,11 +10,16 @@ function(
|
||||
<input
|
||||
type="text"
|
||||
className={ (this.props.field.size) ? '' : 'regular-text' }
|
||||
size={ (this.props.field.size !== 'auto') ? this.props.field.size : false }
|
||||
size={
|
||||
(this.props.field.size !== 'auto' && this.props.field.size > 0)
|
||||
? this.props.field.size
|
||||
: false
|
||||
}
|
||||
name={ this.props.field.name }
|
||||
id={ 'field_'+this.props.field.name }
|
||||
value={ this.props.item[this.props.field.name] }
|
||||
placeholder={ this.props.field.placeholder }
|
||||
defaultValue={ this.props.field.defaultValue }
|
||||
onChange={ this.props.onValueChange } />
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user