vueless 0.0.789 → 0.0.790
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -199,10 +199,13 @@ export default function useFormatCurrency(
|
|
|
199
199
|
0,
|
|
200
200
|
options.value.maxFractionDigits,
|
|
201
201
|
);
|
|
202
|
+
const actualMinFractionDigits = options.value.minFractionDigits
|
|
203
|
+
? options.value.minFractionDigits
|
|
204
|
+
: currentFraction.length;
|
|
202
205
|
|
|
203
206
|
const newFormattedValue = getFormattedValue(newRawValue, {
|
|
204
207
|
...options.value,
|
|
205
|
-
minFractionDigits:
|
|
208
|
+
minFractionDigits: actualMinFractionDigits,
|
|
206
209
|
});
|
|
207
210
|
|
|
208
211
|
if (Number.isNaN(newFormattedValue) || newFormattedValue.includes("NaN")) {
|