You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting:
When using a ReferenceInput element with a child of AutocompleteInput, I expect to see the label property reflected in the form. Also, the disabled and required attributes should be considered.
What happened instead:
When the child of a ReferenceInput tag is an AutocompleteInput, the source is converted and displayed as the label and the label property is ignored.
It also appears that the disabled and the required attributes are also ignored when the child is a AutocompleteInput
Related code:
This works (BTW, the required and disabled are there to illustrate the issue and are actually dynamically added based on the boolean below member_focused, in case that looked weird.
Other information:
Played with this a lot trying different work arounds. My strong preference is to use the AutocompleteInput vs the SelectInput due to the number of choices the user faces
Environment
React-admin version: 3.0.0-beta.2
Last version that did not exhibit the issue (if applicable): Not positive ever worked
React version: 16.9.0
Browser: Chrome Version 77.0.3865.120 (Official Build) (64-bit)
Stack trace (in case of a JS error): n/a
Cheers!
The text was updated successfully, but these errors were encountered:
Looks great! Also, I was able to get the required and disabled to work by using options={{}} syntax. AND, I was very happy to see beta 3 up on npmjs. Cheers!
What you were expecting:
When using a ReferenceInput element with a child of AutocompleteInput, I expect to see the label property reflected in the form. Also, the disabled and required attributes should be considered.
What happened instead:
When the child of a ReferenceInput tag is an AutocompleteInput, the source is converted and displayed as the label and the label property is ignored.
It also appears that the disabled and the required attributes are also ignored when the child is a AutocompleteInput
Related code:
This works (BTW, the required and disabled are there to illustrate the issue and are actually dynamically added based on the boolean below member_focused, in case that looked weird.
this does not (only difference is the SelectInput became a AutocompleteInput
Other information:
Played with this a lot trying different work arounds. My strong preference is to use the AutocompleteInput vs the SelectInput due to the number of choices the user faces
Environment
Cheers!
The text was updated successfully, but these errors were encountered: