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

[RFR] Pass the current record to rowClick #2625

Merged
merged 2 commits into from
Dec 5, 2018
Merged

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Dec 5, 2018

No description provided.

@djhi djhi added this to the 2.6.0 milestone Dec 5, 2018
@@ -96,7 +104,7 @@ const PostList = withStyles(styles)(({ classes, ...props }) => (
/>
}
medium={
<Datagrid>
<Datagrid rowClick={rowClick}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the PostList has an Edit and Show button, it doesn't make sense to use rowClick here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used for the e2e tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And we should definitely rename this sample

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a Edit button in addition of a row click doesn't bother me at all.
Quite the opposite!

@fzaninotto fzaninotto merged commit dc59b0c into next Dec 5, 2018
@fzaninotto fzaninotto deleted the row-click-record branch December 5, 2018 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants