0

ReferenceInput 不适用于 ArrayInput。如何执行以下操作?

    <ArrayInput source="comments">
      <SimpleFormIterator>
        <ReferenceInput source="comments" reference="user">
          <AutocompleteInput optionText="username" />
        </ReferenceInput>
      </SimpleFormIterator>
    </ArrayInput>
4

1 回答 1

0

It was an issue and it has been fixed in 2.1.5. See https://github.com/marmelab/react-admin/pull/2079 for the pull request and https://github.com/marmelab/react-admin/releases/tag/v2.1.5 for the release.

于 2018-04-21T20:26:56.840 回答