React-Admin AutoCompleteInput仅使用第一个1000个选择

发布于 2025-02-09 13:59:58 字数 586 浏览 1 评论 0原文

我们使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怎言笑 2025-02-16 13:59:58

不,这是现在的限制或自动填页(或更具体地说,是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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文