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: ignore sorter click if event is canceled #5089

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

tomivirkki
Copy link
Member

Description

Fixes vaadin/flow-components#4170

In the case of clicking a <vaadin-select> (wrapped inside a <vaadin-grid-sorter>), the native focus is moved right away inside the select overlay

sorter-select-click.mp4

...so the existing check that reacts on internal focusable clicks didn't stop the event from being consumed by the sorter.

This PR fixes the issue by adding another check which stops the processing in case something else has already canceled the event.

Type of change

Bugfix

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.0.0.alpha6 and is also targeting the upcoming stable 24.0.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.

Vaadin-Grid: Problem with Select field in header if column is sortable
3 participants