ReferenceInput doesn't work correctly
See original GitHub issueSelectInput component doesn’t display choices (SelectInput always disabled):
<ReferenceInput source="productId" reference="products">
<SelectInput optionText="name" />
</ReferenceInput>
When adding attributes “allowEmpty” and “validation={{ required: true }}” component renders fine:
<ReferenceInput source="productId" reference="products" allowEmpty validation={{ required: true }}>
<SelectInput optionText="name" />
</ReferenceInput>
version 0.9.1
Issue Analytics
- State:
- Created 7 years ago
- Reactions:13
- Comments:20 (10 by maintainers)
Top Results From Across the Web
ReferenceInput doesn't work as expected · Issue #4562 - GitHub
Version: "react-admin": "3.3.1" When I created the ReferenceInput as below The server ... ReferenceInput doesn't work as expected #4562.
Read more >React admin ReferenceInput Component does not work as ...
I'm doing it correctly and it should work, but why no suggestions are shown then ? typescript · react-admin · api-platform.com · hydra...
Read more >Admin-on-rest - Input Components - Marmelab
Tip: If your interface has to support multiple languages, don't use the label ... ReferenceInput passes a setFilter function as prop to its...
Read more >Dual, Fast, Step-Down Controller's External Reference Input ...
Dual, Fast, Step-Down Controller's External Reference Input Enables Dynamic Voltage Scaling from 0.4V to 5.5V and 0.3% Total Combined Regulation Accuracy.
Read more >Custom event with reference input warning - Editor Scripting
What does it mean? I tried it out wit a simple printf and it work correctly. Any ideas?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Are you in a
<Create>
view? If so, it’s expected, as explained in the doc:Ok, by digging more I think my problem is that isRequired != Empty
I just created a component working as I expect in create mode : https://gist.github.com/petitchevalroux/e39bb59d8e8416037f3b96e35a144b22
It allows to choose an item in SelectInput but didn’t allow the form to be submitted with the empty item.