Not pass undefined as default value for select
[PREMIUM-72]
This commit is contained in:
@ -60,7 +60,7 @@ const FormFieldSelect = React.createClass({
|
|||||||
<select
|
<select
|
||||||
name={this.props.field.name}
|
name={this.props.field.name}
|
||||||
id={`field_${this.props.field.name}`}
|
id={`field_${this.props.field.name}`}
|
||||||
value={this.props.item[this.props.field.name]}
|
value={this.props.item[this.props.field.name] || ''}
|
||||||
onChange={this.props.onValueChange}
|
onChange={this.props.onValueChange}
|
||||||
{...this.props.field.validation}
|
{...this.props.field.validation}
|
||||||
>
|
>
|
||||||
|
Reference in New Issue
Block a user