ReferenceInput 未归档选择组件 [英] ReferenceInput is not filing the select component
本文介绍了ReferenceInput 未归档选择组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 React-admin 中,我试图实现一个参考输入.我看到列表 api 调用已完成并且响应可用.但是 selectinput 组件仍然是空的.我将不胜感激任何帮助.表源列是注释.参考资源是注释:
In React-admin i am trying to implement a referenceinput. I see that the list api call is made and response is availble. however the selectinput component remains empty. I would appreciate any help. Table source column is notes. and reference resource is notes:
<Create actions={<CoaActions />} title="New Coa" {...props}>
<SimpleForm variant="standard">
<TextInput source="code" />
<TextInput multiline source="title" />
<TextInput source="iscashbook" />
<TextInput source="isbankbook" />
<ReferenceInput label="Notes" source="notes" resource="notes" reference="notes/list">
<SelectInput optionText="name" />
</ReferenceInput>
<TextInput source="obal" />
<BooleanInput source="active" />
</SimpleForm>
</Create>
推荐答案
从引用输入中移除资源属性
Remove the resource prop from the referenceinput
这篇关于ReferenceInput 未归档选择组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文