Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

fix(filter-field): Fixes an issue with validation flickering on free text. #1253

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

tomheller
Copy link
Collaborator

@tomheller tomheller commented Jul 8, 2020

Pull Request

Fixes the issue by initializing the hidden FormControl with an empty value instead of null. This in combination with a check for difference when writing the control value fixed the dirty checks of the validator and therefor the flickering.

I also quickly tried to add an e2e test to this one, but the flickering made it really unstable. I opted to not add an e2e test for this one.

Fixes #1180

Type of PR

Bugfix

Checklist

  • I have read the CONTRIBUTING doc and I follow the PR guidelines
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@tomheller tomheller self-assigned this Jul 8, 2020
Copy link
Collaborator

@ffriedl89 ffriedl89 left a comment

Choose a reason for hiding this comment

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

💯

@tomheller tomheller added the pr: merge-ready This PR is ready to be merged label Jul 9, 2020
@github-actions github-actions bot added target: minor This PR is targeted for the next minor release target: patch This PR is targeted for the next patch release labels Jul 9, 2020
@tomheller tomheller merged commit 86b172d into master Jul 13, 2020
@tomheller tomheller deleted the fix/filter-field-validator-flash branch July 13, 2020 10:21
@github-actions
Copy link

The auto cherry picker succeeded.Cherry picked to minor branch 7.x. New head is now 8175d0c
Cherry picked to patch branch 7.3.x. New head is now 90da596

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge-ready This PR is ready to be merged target: minor This PR is targeted for the next minor release target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filter field: validation error is displayed while field is dirty
3 participants