Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-Admin AutocompleteInput only uses first 1000 choices #7880

Closed
Brebeck-Jan opened this issue Jun 23, 2022 · 2 comments · Fixed by #7889
Closed

React-Admin AutocompleteInput only uses first 1000 choices #7880

Brebeck-Jan opened this issue Jun 23, 2022 · 2 comments · Fixed by #7889
Labels

Comments

@Brebeck-Jan
Copy link

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.

It seems like an limitation of useChoicesContext and/or useList hooks.

Environment

React-admin version: 4.1.3
React version: 17.x

@antoinefricker
Copy link
Contributor

antoinefricker commented Jun 23, 2022

Thanks for reporting!

Could you provide a behaviour reproduction sandbox?

  • a CodeSandbox forked from simple example V4 or v3
  • a link to a GitHub repo with the minimal codebase to reproduce the issue?

Many thanks for your help in this matter! 👍

@Brebeck-Jan
Copy link
Author

Brebeck-Jan commented Jun 23, 2022

I create an CodeSandbox with an simple example: CodeSandbox

I did an AutocompleteInput on the title of PostEdit. If you click on it, you get Suggestions up to 999, but non further. Choices are from 0 to 1005 but only 0 to 999 will be used from the AutocompleteInput-Component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants