Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceManyField fullWidth only works when addLabel={false} #6674

Closed
davidhenley opened this issue Oct 13, 2021 · 3 comments · Fixed by #6915
Closed

ReferenceManyField fullWidth only works when addLabel={false} #6674

davidhenley opened this issue Oct 13, 2021 · 3 comments · Fixed by #6915
Labels

Comments

@davidhenley
Copy link
Contributor

davidhenley commented Oct 13, 2021

Is NOT full width

        <ReferenceManyField ... fullWidth>
          <Datagrid>
            <TextField source="id"/>
            <DateField source="orderDate"/>
            <DateField source="shipDate"/>
          </Datagrid>
        </ReferenceManyField>

Screen Shot 2021-10-13 at 1 56 41 PM

Is full width

        <ReferenceManyField ... fullWidth addLabel={false}>
          <Datagrid>
            <TextField source="id"/>
            <DateField source="orderDate"/>
            <DateField source="shipDate"/>
          </Datagrid>
        </ReferenceManyField>

Screen Shot 2021-10-13 at 1 57 40 PM

"dependencies": {
    "react": "^17.0.2",
    "react-admin": "3.18.3",
    "react-dom": "^17.0.2",
    "react-scripts": "4.0.3"
  },
@djhi
Copy link
Collaborator

djhi commented Oct 14, 2021

Thanks for reporting this. Please provide a sample application showing the issue by forking the following CodeSandbox (https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple).

@davidhenley
Copy link
Contributor Author

davidhenley commented Oct 14, 2021

I don't think a full blown sample is needed for such a small issue but here you go:

https://codesandbox.io/s/great-sun-emgn1?file=/src/posts/PostShow.tsx

@WiXSL
Copy link
Contributor

WiXSL commented Nov 17, 2021

Reproduced. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants