Referenced items won't be selected when IDs type differ in <ReferenceArrayInput>
and <AutoCompleteInput>
#8499
Labels
<ReferenceArrayInput>
and <AutoCompleteInput>
#8499
What you were expecting:
Inputs handling arrays of IDs such as
<ReferenceArrayInput>
and<AutoCompleteInput>
should allow types discrepancies in IDs types. For now, comparing ID "2" and 2 produces unexpected array of behaviours often reported in support or forums.Related code:
Demo application
For the Artists resource, IDs are typed as
number
in the dataProvidergetList
method.In the Bands resource, members are typed as
(number | string)[]
.Please note that members defined a string typed ID are not selected as initial display.
Members inputs should display two artists of IDs '#1' and '#2'.
The text was updated successfully, but these errors were encountered: