-
Notifications
You must be signed in to change notification settings - Fork 298
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
Changing hidden input breaks the entered value again #1449 #1455
Merged
andriikamaldinov1
merged 10 commits into
JsDaddy:develop
from
BGBRWR:changing-hiddenInput-breaks-the-entered-value-again-#1449
Dec 5, 2024
Merged
Changing hidden input breaks the entered value again #1449 #1455
andriikamaldinov1
merged 10 commits into
JsDaddy:develop
from
BGBRWR:changing-hiddenInput-breaks-the-entered-value-again-#1449
Dec 5, 2024
Conversation
This file contains 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
TypeTest now mimics true typing since there isn't a browser with the testing suite.
…ith detailed comments and improved handling
This is needed with inputs with multiple mask types and they have specialCharacters in the mask.
…e hiddenInput default value
…nging-hiddenInput-breaks-the-entered-value-again-JsDaddy#1449
This fixes #1432. |
…necessary parameters This fixes cursor position when they have a * in the mask.
@BGBRWR Hi . Please resolve merge conflicts. |
…nging-hiddenInput-breaks-the-entered-value-again-JsDaddy#1449
@BGBRWR Thanks for using Ngx-mask and Contributing. We merged ur PR and will be do release soon. |
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.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #1449, #1432
What is the new behavior?
While setting hiddenInput to null use to do the trick it doesn't anymore. And setting hiddenInput to
false
will clash with parameters of the ngx-mask. The updated testing reveals some of those issues and null checking hiddenInput doesn't fix them all. These changes do.There is a new PasteTest function and new behavior for TypeTest. They mimic the events that would occur with a human using the ngx-mask input in a browser. This shows several breaking test cases and including the ones in secure-mask.spec.ts that should be broken with the changes in 18.0.1. I also updated some of the specs test cases to pass while keeping each test cases' intentions.
Now the code will check if there are
symbol_star
s (*) in the value to process the input back to its true value when hiddenInput isfalse
.I also fix a issue with inputs with multiple mask types and those masks have specialCharacters (UK POST - S0 0SS||SAA 0SS||SS0A 0SS). It wasn't selecting the correct mask type on typing. Demo here: https://stackblitz.com/edit/stackblitz-starters-n8bkaa?file=src%2Fmain.ts
Does this PR introduce a breaking change?
Other information
Please let me know if you have feedback or questions.