-
Notifications
You must be signed in to change notification settings - Fork 66
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: hide the grid-pro editor component until updated #6820
fix: hide the grid-pro editor component until updated #6820
Conversation
828c419
to
2ffcf57
Compare
2ffcf57
to
e7fd908
Compare
if (editor.__itemKey !== itemKey) { | ||
// This is an outdated call that can occur if the user starts editing a cell, | ||
// and quickly starts editing another cell on the same column before the editor | ||
// is unhidden for the first cell. | ||
return; | ||
} |
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.
Couldn't find a way to test this in an IT. Here's the issue it fixes:
Kapture.2024-11-15.at.09.29.28.mp4
const stopCellEdit = column._stopCellEdit; | ||
column._stopCellEdit = function (editor, itemKey, grid) { | ||
stopCellEdit.call(this, editor, itemKey, grid); | ||
this._grid.toggleAttribute(LOADING_EDITOR_CELL_ATTRIBUTE, false); | ||
}; |
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.
The arguments here are different than what is actually in the web component: https://github.com/vaadin/web-components/blob/bafcfd7d3b9c02af6162444666bbad1f5488b225/packages/grid-pro/src/vaadin-grid-pro-edit-column-mixin.js#L295-L302
Could use apply
instead to keep this logic safe for future changes in the WC.
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.
Done
Quality Gate passedIssues Measures |
Hi @tomivirkki and @tomivirkki, when i performed cherry-pick to this commit to 24.3, i have encountered the following issue. Can you take a look and pick it manually? |
This ticket/PR has been released with Vaadin 24.6.0.beta1 and is also targeting the upcoming stable 24.6.0 version. |
Co-authored-by: Tomi Virkki <[email protected]> Co-authored-by: Sascha Ißbrücker <[email protected]>
Co-authored-by: Tomi Virkki <[email protected]> Co-authored-by: Sascha Ißbrücker <[email protected]>
Description
This PR makes GridPro apply the "loading-editor" attribute on the web component while a custom editor component is still being loaded.
Kapture.2024-11-14.at.16.49.01.mp4
Fixes vaadin/web-components#2550
Depends on vaadin/web-components#8156
Type of change
Bugfix