From 690e274e07ea2f68654f6e7bdf4e5397338f0f80 Mon Sep 17 00:00:00 2001 From: kyle Date: Fri, 1 Jun 2018 13:30:42 -0700 Subject: [PATCH] fix(try-it-out): initially unset required booleans (#4613) --- src/core/json-schema-components.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/json-schema-components.js b/src/core/json-schema-components.js index ac7e5605..78ea6962 100644 --- a/src/core/json-schema-components.js +++ b/src/core/json-schema-components.js @@ -210,7 +210,7 @@ export class JsonSchema_boolean extends Component { title={ errors.length ? errors : ""} value={ String(value) } allowedValues={ fromJS(schema.enum || ["true", "false"]) } - allowEmptyValue={ !this.props.required } + allowEmptyValue={ true } onChange={ this.onEnumChange }/>) } }