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: ensure validation is triggered before change event #6180

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Jul 17, 2023

Description

The PR ensures combo-box's validation is triggered before the change event, aligning it with the behavior of other field components. Additionally, this fixes another bug where validation wasn't run at all when pressing Enter or clicking the clear button, despite a change event being fired immediately in that case.

A follow-up to #6164

Part of vaadin/flow-components#5712

Type of change

  • Bugfix

@vursen vursen changed the title fix: ensure validation occurs before change event fix: ensure validation runs before change event Jul 17, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jul 17, 2023

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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

1 similar comment
@sonarcloud
Copy link

sonarcloud bot commented Jul 17, 2023

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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vursen vursen marked this pull request as ready for review July 17, 2023 14:29
@vursen vursen requested a review from web-padawan July 17, 2023 14:29
@vursen vursen changed the title fix: ensure validation runs before change event fix: ensure validation is triggered before change event Jul 17, 2023
@vursen vursen requested a review from sissbruecker July 19, 2023 06:26
@web-padawan web-padawan merged commit 90a7b10 into main Jul 19, 2023
9 checks passed
@web-padawan web-padawan deleted the fix/combo-box/validate-before-change-veent branch July 19, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants