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/value changes #1408

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open

Conversation

MattKuhn123
Copy link

@MattKuhn123 MattKuhn123 commented Jul 26, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

When a formControl's value is set programmatically with a value that doesn't fit the mask, then the value displayed in the element won't match what the programmer was expecting.

Issue Number: 1372

What is the new behavior?

To help the programmer understand what is going on, detect if there was a fault with the mask application. If a fault was detected, log a warning in the console, and display the programmatically-set value in the element.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

MAttitiyahoo2 and others added 18 commits July 24, 2024 16:12
apply the same value to native element as what is applied to the form control when formControl.setValue is called. Log a warning and optionally return a validation error.
removing configurability, because it seems that making something configurable impacts many projects (and not just this one). Can add later, if it's worth the complexity.

updating maskAppliedWithoutIssue to also accomodate dropSpecialCharacters
…rors. Do not attempt to interpret !_justPased and !_code as setValueTriggered
@MattKuhn123 MattKuhn123 marked this pull request as ready for review July 30, 2024 13:59
@NepipenkoIgor
Copy link
Collaborator

@MattKuhn123 Hi. Please resolve merge conflicts

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.

4 participants