-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[DataGridPro] Fix selection propagation issue on initialization #15461
Conversation
Deploy preview: https://deploy-preview-15461--material-ui-x.netlify.app/ |
@@ -453,9 +453,6 @@ export const useGridRowSelection = ( | |||
const isFirstRender = React.useRef(true); | |||
const removeOutdatedSelection = React.useCallback( | |||
(sortModelUpdated = false) => { | |||
if (isFirstRender.current) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isFirstRender
is not used anymore. it can be cleared from the file
with that
how does this affect #14909
since that was the only change added to address that issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cherry-pick PRs will be created targeting branches: v7.x |
Fixes #15382