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

Fix resize #59

Merged
merged 7 commits into from
Jul 9, 2020
Merged

Fix resize #59

merged 7 commits into from
Jul 9, 2020

Conversation

dtassone
Copy link
Member

@dtassone dtassone commented Jul 9, 2020

No description provided.

const handleMouseMove = useCallback(
(event: React.MouseEvent<HTMLElement>): void => {
const handleMouseMove = React.useCallback(
(ev: MouseEvent): void => {
Copy link
Member Author

Choose a reason for hiding this comment

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

we committed a wrong type, when we reviewed. Fix now :)

Copy link
Member

Choose a reason for hiding this comment

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

Oh right, sorry. I didn't check the context. The event comes from the DOM, it's not a synthetic one.

For this case, we went with the following convention: nativeEvent. This will prevent future confusion. It was changed in mui/material-ui#21610 (comment) (I already took care of updating the main repository to follow this pattern, hopefully I didn't miss any cases).

@dtassone dtassone merged commit 4eb8a63 into master Jul 9, 2020
@dtassone dtassone deleted the fixResize branch July 9, 2020 16:49
@oliviertassinari oliviertassinari added the component: data grid This is the name of the generic UI component, not the React module! label Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants