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: detect item correctly when clicking item content #7371

Merged
merged 3 commits into from
May 2, 2024

Conversation

web-padawan
Copy link
Member

Description

Fixes a regression from #7288

When using vaadin-item with some element inside it e.g. icon etc, event.target is pointing to that element on click.
This PR fixes that to check event.composedPath() and detect if there is an element implementing ItemMixin.

Type of change

  • Bugfix

@web-padawan web-padawan requested a review from vursen May 2, 2024 09:34
Copy link

sonarcloud bot commented May 2, 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

@web-padawan web-padawan merged commit 3c32fbe into main May 2, 2024
9 checks passed
@web-padawan web-padawan deleted the fix/select-item-value branch May 2, 2024 09:56
web-padawan added a commit that referenced this pull request May 3, 2024
Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot
Copy link
Collaborator

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

@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.

None yet

3 participants