React-Admin AutoCompleteInput仅使用第一个1000个选择
我们使用AutoCompleteInput
,具有超过1000个相关页面的静态数组:
<ArrayInput source="pages">
<SimpleFormIterator>
<AutocompleteInput
source={"id"}
choices={relatedPages}
/>
</SimpleFormIterator>
</ArrayInput>
预期: 我们可以在静态数组中选择所有项目中的一个项目。
实际上: 我们只能从静态数组的前1000个项目中进行选择。这也发生在selectInput
中。
这是一种预期的行为,是否有一种方法可以增加1000个选择的限制?
错误: 7880
We use AutocompleteInput
with an static array of more than 1000 choices for relatedPages:
<ArrayInput source="pages">
<SimpleFormIterator>
<AutocompleteInput
source={"id"}
choices={relatedPages}
/>
</SimpleFormIterator>
</ArrayInput>
Expected:
We can select one item of all items in our static array.
Actually:
We can only select from the first 1000 items of our static array. This happens with the SelectInput
, too.
Is this an expected behaviour and is there a way to increase this limit of 1000 choices?
BUG: 7880
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,这是现在的限制或自动填页(或更具体地说,是USECHOICESCONTEXT和USELIST挂钩)。
我建议您在React-Admin错误跟踪器中打开一个问题。
No, that's a limitation or the AutocompleteInput as it is now (or, more specifically, of the useChoicesContext and useList hooks).
I advise you to open an issue in the react-admin bug tracker about it.