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

Documentation: property filterToQuery is not mentioned anywhere #8250

Closed
JonasDoe opened this issue Oct 10, 2022 · 1 comment · Fixed by #8251
Closed

Documentation: property filterToQuery is not mentioned anywhere #8250

JonasDoe opened this issue Oct 10, 2022 · 1 comment · Fixed by #8251

Comments

@JonasDoe
Copy link
Contributor

What you were expecting:
Find some documenation about the property filterToQuery at https://marmelab.com/react-admin/ReferenceArrayInput.html and https://marmelab.com/react-admin/AutocompleteArrayInput.html (and mb. others).

What happened instead:
The property filterToQuery is mentioned nowhere, so I had a tough time finding out it exists and I can use it. It's still declared in the TypeScript files though.

Steps to reproduce:
Well ...

Related code:

Other information:

Environment

  • React-admin version: I'm using 4.2.6, but took the information from the website
@WiXSL
Copy link
Contributor

WiXSL commented Oct 10, 2022

Thanks for your feedback.
Yes, the docs could be improved.

Actually, this prop can only be used in AutocompleteInput and AutocompleteArrayInput:
https://marmelab.com/react-admin/Upgrade.html#referenceinput-no-longer-accepts-the-filtertoquery-prop

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

Successfully merging a pull request may close this issue.

2 participants