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 change event is fired on blur after prevented mousedown #6150

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

web-padawan
Copy link
Member

Description

Fixes vaadin/flow-components#4932

Currently, preventing touchend also causes the focusout to be prevented and that suppresses change event.
This PR fixes that by storing a value at the moment of the last change event and dispatching change manually.

Type of change

  • Bugfix

@web-padawan web-padawan requested a review from vursen July 13, 2023 06:21
@web-padawan web-padawan changed the title fix: validate and dispatch change on prevented touchend event fix: ensure change event is fired on blur after prevented mousedown Jul 13, 2023
@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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

Hi @web-padawan , this commit cannot be picked to 23.3 by this bot, can you take a look and pick it manually?
Error Message: Error: Command failed: git cherry-pick 697ed9a
error: could not apply 697ed9a... fix: dispatch change event on blur after prevented mousedown (#6150)
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".

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.

PasswordField reveal password breaks PasswordField.getValue in Android chrome
3 participants