Skip to content

Commit

Permalink
Merge pull request #8004 from ApolloRisky/patch-1
Browse files Browse the repository at this point in the history
[doc] Fix: Incorrect example code block of ReferenceInput
  • Loading branch information
fzaninotto authored Jul 26, 2022
2 parents 8936300 + c2040aa commit 5849469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ReferenceInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ The component expects a `source` and a `reference` attributes. For instance, to
```jsx
import { ReferenceInput, SelectInput } from 'react-admin';

<ReferenceInput label="Post" source="post_id" reference="posts">
<SelectInput optionText="title" />
<ReferenceInput source="post_id" reference="posts">
<SelectInput label="Post" optionText="title" />
</ReferenceInput>
```

Expand Down

0 comments on commit 5849469

Please sign in to comment.