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 full value replacement issue when allowEmptyString is set to true #511

Merged
merged 1 commit into from
Mar 28, 2021

Conversation

nikhil-varma
Copy link
Collaborator

@nikhil-varma nikhil-varma commented Mar 28, 2021

Describe the issue/change

When the input gets value via the auto-complete feature of a browser and is allowEmptyFormatting is allowed, it does not show the updated value and shows the old formatted string.

Add CodeSandbox link to illustrate the issue (If applicable)

Describe specs for failing cases if this is an issue (If applicable)

Browser autocomplete replacing the whole value will not update the input field with the new value

Describe the changes proposed/implemented in this PR

The logic looks to validate if the selection is for the entire string and updates the value

Link Github issue if this PR solved an existing issue

#450

Example usage (If applicable)

No change in the usage

Screenshot (If applicable)

Please check which browsers were used for testing

  • Chrome
  • Chrome (Android)
  • Safari (OSX)
  • Safari (iOS)
  • Firefox
  • Firefox (Android)

@nikhil-varma nikhil-varma changed the title fix: Fix full value replacement issue Fix full value replacement issue when allowEmptyString is set to true Mar 28, 2021
@nikhil-varma nikhil-varma self-assigned this Mar 28, 2021
@nikhil-varma nikhil-varma requested a review from s-yadav March 28, 2021 10:47
@s-yadav s-yadav merged commit a431cd6 into master Mar 28, 2021
@nikhil-varma nikhil-varma deleted the fix/fix-autocomplete-issue branch March 28, 2021 16:55
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.

2 participants