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:
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)
PR Type
What kind of change does this PR introduce?
[x] 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: #1358
What is the new behavior?
When 1 is entered and the input loses focus, the value is replaced with 1.0
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?
What is the current behavior?
When
mask="separator.1"
andleadZero="true"
, the input's value doesn't change when there is no decimal and the input loses focus. So, if1
is entered in this case, the value remains1
but the desired result is that the value would be changed to1.0
.Issue Number: #1358
What is the new behavior?
When
1
is entered and the input loses focus, the value is replaced with1.0
Does this PR introduce a breaking change?