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: hide the grid-pro editor component until updated #6820

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tomivirkki
Copy link
Member

@tomivirkki tomivirkki commented Nov 14, 2024

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

@tomivirkki tomivirkki marked this pull request as draft November 14, 2024 07:51
@tomivirkki tomivirkki force-pushed the fix/grid-pro-custom-editor-old-value-flashing branch from 828c419 to 2ffcf57 Compare November 14, 2024 10:59
Copy link

sonarcloud bot commented Nov 14, 2024

Comment on lines +18 to +23
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;
}
Copy link
Member Author

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

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