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

Support forwarding ref with Datagrid* #5194

Closed
jeiea opened this issue Aug 27, 2020 · 2 comments
Closed

Support forwarding ref with Datagrid* #5194

jeiea opened this issue Aug 27, 2020 · 2 comments

Comments

@jeiea
Copy link
Contributor

jeiea commented Aug 27, 2020

Is your feature request related to a problem? Please describe.
I want to embed drag and copy feature in ra data grid. But I cannot access data grid's innerText because DataGrid, DataGridBody does not forward ref to inner material-ui element.

Describe the solution you'd like
Add React.forwardRef to Datagrid.tsx, DatagridBody.tsx, DatagridCell.tsx.

Describe alternatives you've considered
Add drag and copy feature to react-admin data grid.

@jeiea
Copy link
Contributor Author

jeiea commented Aug 27, 2020

Please let me know if I can make a pull request for the first way.

@djhi
Copy link
Collaborator

djhi commented Aug 28, 2020

Yes, go ahead :)

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

No branches or pull requests

2 participants