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(1358): add trailing zero when mask="separator.1" and leadZero="true" #1

Merged
merged 1 commit into from
May 3, 2024

Conversation

nathanielbuck
Copy link
Owner

Currently, no trailing zero is added when mask="separator.1" and leadZero="true" and input loses focus. This change adds the trailing zero in that case.

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 mask="separator.1" and leadZero="true", the input's value doesn't change when there is no decimal and the input loses focus. So, if 1 is entered in this case, the value remains 1 but the desired result is that the value would be changed to 1.0.

Issue Number: JsDaddy#1358

What is the new behavior?

When 1 is entered and the input loses focus, the value is replaced with 1.0

Does this PR introduce a breaking change?

  • Yes
  • No

Currently, no trailing zero is added when mask="separator.1" and leadZero="true" and input loses focus. This change adds the trailing zero in that case.
@nathanielbuck nathanielbuck merged commit d39db49 into develop May 3, 2024
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.

1 participant