未验证 提交 690e274e 编写于 作者: K kyle 提交者: GitHub

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

上级 a2fee7ed
......@@ -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 }/>)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册