Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
itsJohnnyGrid committed Feb 19, 2025
2 parents 3cb65a3 + 3358db6 commit 062a8e3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vueless",
"version": "0.0.789",
"version": "0.0.790",
"license": "MIT",
"description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
"keywords": [
Expand Down
5 changes: 4 additions & 1 deletion src/ui.form-input-money/useFormatCurrency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,13 @@ export default function useFormatCurrency(
0,
options.value.maxFractionDigits,
);
const actualMinFractionDigits = options.value.minFractionDigits
? options.value.minFractionDigits
: currentFraction.length;

const newFormattedValue = getFormattedValue(newRawValue, {
...options.value,
minFractionDigits: currentFraction.length,
minFractionDigits: actualMinFractionDigits,
});

if (Number.isNaN(newFormattedValue) || newFormattedValue.includes("NaN")) {
Expand Down

0 comments on commit 062a8e3

Please sign in to comment.