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

TextMask: onChange and onComplete pattern aren't called on first input #25

Closed
1 of 6 tasks
renato-bohler opened this issue Mar 14, 2018 · 0 comments
Closed
1 of 6 tasks
Assignees
Labels
bug Something isn't working text mask Refers to the `createTextMask`

Comments

@renato-bohler
Copy link
Owner

What are you reporting?

  • Bug
  • Feature request
  • Code refactor
  • Continuous Integration (CI) improvement
  • Changes in documentation (docs)
  • Other (describe)

What is the current behavior?

On text masks, both the onChange and the onCompletePattern functions don't get called upon the first input. If the mask contains only one character, those functions would never be called.

What is the expected behavior?

They should get called for any input.

Sandbox Link

https://codesandbox.io/s/vv73qyvk33

@renato-bohler renato-bohler added bug Something isn't working text mask Refers to the `createTextMask` labels Mar 14, 2018
@renato-bohler renato-bohler self-assigned this Mar 14, 2018
renato-bohler added a commit that referenced this issue May 8, 2018
renato-bohler added a commit that referenced this issue May 8, 2018
<a name="1.1.2"></a>
## [1.1.2](v1.1.1...v1.1.2) (2018-05-08)

### Bug Fixes

* **createTextMask:** fixes onCompletePattern and onChange not being called sometimes ([5081b55](5081b55)), closes [#28](#28) [#25](#25)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working text mask Refers to the `createTextMask`
Projects
None yet
Development

No branches or pull requests

1 participant