Reactjs 将react语义ui复选框与redux表单集成
我想在react语义UI中添加一个 但即使在我将复选框命名为以下内容后,它也无法将选中的值发送到服务器:Reactjs 将react语义ui复选框与redux表单集成,reactjs,semantic-ui,redux-form,Reactjs,Semantic Ui,Redux Form,我想在react语义UI中添加一个 但即使在我将复选框命名为以下内容后,它也无法将选中的值发送到服务器: <Form.Field label="The question is new to the intent library" name="newType" control={Field} component={Checkbox} /> <Form> <Form.Field label="Rating" control={Field}
<Form.Field
label="The question is new to the intent library"
name="newType"
control={Field}
component={Checkbox}
/>
<Form>
<Form.Field
label="Rating"
control={Field}
name="rate"
component={Rating}
...
/>
<That checkbox ... />
<Form.Field
label="Comment"
control={Field}
name="comment"
component="textarea"
/>
</Form>
此组件位于如下表单中:
<Form.Field
label="The question is new to the intent library"
name="newType"
control={Field}
component={Checkbox}
/>
<Form>
<Form.Field
label="Rating"
control={Field}
name="rate"
component={Rating}
...
/>
<That checkbox ... />
<Form.Field
label="Comment"
control={Field}
name="comment"
component="textarea"
/>
</Form>
假设动作应在有效载荷中携带检查值,类似于评级和注释的携带方式
我被困在这里半天了
如果你注意到什么,请帮助我。谢谢 使用以下代码可以解决此问题
<Form.Field
control={Field}
label="The question is new to the intent library"
name="newType"
component="input"
type="checkbox"
/>