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: do not cancel edit column cell click events #7453

Merged
merged 2 commits into from
May 28, 2024

Conversation

tomivirkki
Copy link
Member

Description

Update vaadin-grid-pro-inline-editing-mixin.js to not cancel click events that occur in edit column cells. Canceling the click events blocks the grid connector from dispatching item-click events which in turn results in the Flow Grid item click listeners not getting invoked.

Related to #637

Type of change

Bugfix

Copy link
Member Author

@tomivirkki tomivirkki May 27, 2024

Choose a reason for hiding this comment

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

The changes to this file are just refactoring: the checks that were previously done inside the _onClick listener were moved to a new protected method _shouldPreventCellActivationOnClick .

@tomivirkki tomivirkki requested a review from vursen May 27, 2024 14:12
Copy link

sonarcloud bot commented May 28, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tomivirkki tomivirkki merged commit f30bd33 into main May 28, 2024
9 checks passed
@tomivirkki tomivirkki deleted the fix/edit-column-click-no-cancel branch May 28, 2024 09:59
@vaadin-bot
Copy link
Collaborator

Hi @tomivirkki and @tomivirkki, when i performed cherry-pick to this commit to 24.4, i have encountered the following issue. Can you take a look and pick it manually?
Error Message:
Error: Command failed: git cherry-pick f30bd33
error: could not apply f30bd33... fix: do not cancel edit column cell click events (#7453)
hint: After resolving the conflicts, mark them with
hint: "git add/rm ", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

@vaadin-bot
Copy link
Collaborator

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?
Error Message:
Error: Command failed: git cherry-pick f30bd33
error: could not apply f30bd33... fix: do not cancel edit column cell click events (#7453)
hint: After resolving the conflicts, mark them with
hint: "git add/rm ", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.0 version.

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

Successfully merging this pull request may close these issues.

3 participants