fix(try-it-out): initially unset required booleans (#4613)

This commit is contained in:
kyle
2018-06-01 13:30:42 -07:00
committed by GitHub
parent a2fee7ed58
commit 690e274e07

View File

@@ -210,7 +210,7 @@ export class JsonSchema_boolean extends Component {
title={ errors.length ? errors : ""} title={ errors.length ? errors : ""}
value={ String(value) } value={ String(value) }
allowedValues={ fromJS(schema.enum || ["true", "false"]) } allowedValues={ fromJS(schema.enum || ["true", "false"]) }
allowEmptyValue={ !this.props.required } allowEmptyValue={ true }
onChange={ this.onEnumChange }/>) onChange={ this.onEnumChange }/>)
} }
} }