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 ValueField.shouldResetOnInsertion not working for max length values #158

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

achernenko-pp
Copy link
Contributor

@achernenko-pp achernenko-pp commented Aug 28, 2020

This PR fixes an issue with ValueField: when the field value has maximum allowed length, setting the shouldResetOnInsertion flag and entering another character has no effect, the value is not reset.

Steps to reproduce

  1. Set max length using a formatter (say, 5 characters).
  2. Enter '12345' in the field.
  3. Set the shouldResetOnInsertion flag to true
  4. Try to press '6'

The field should replace the current value with '6', but it doesn't, so the value remains '12345'.

@achernenko-pp achernenko-pp changed the title Fix ValueField.shouldResetOnInsertion not working if value has maximum length Fix ValueField.shouldResetOnInsertion not working for max length values Aug 28, 2020
@achernenko-pp achernenko-pp merged commit fa7ddcb into master Sep 3, 2020
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.

None yet

2 participants