Added new event onIncompleteFocus#2248
Open
Evelyne28 wants to merge 1 commit intoRobinHerbots:5.xfrom
Open
Conversation
Owner
|
I can understand the need for instant validation. But maybe it is better to consolidate some event like oncomplete, onincomplete, onkeyvalidation and make some kind of onValidate which provides info like in the onkeyvalidation and also include a status which indicate complete or incomplete, ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello!
I am working on a project and we're doing input validations on blur event. Our validation event is triggered before the InputMask 'onIncomplete' event, making our validation harder to implement.
I would suggest adding another event, 'onIncompleteFocus'. This would be similar to the 'onIncomplete' event, but would be triggered on Focus (as the 'onComplete' event).
For a mask like this: aaaa-9999, if the user enters 'abcd-1' and the next character entered is '2' then this event would be triggered (while the focus is still on).