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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.789",
3
+ "version": "0.0.790",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -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: currentFraction.length,
208
+ minFractionDigits: actualMinFractionDigits,
206
209
  });
207
210
 
208
211
  if (Number.isNaN(newFormattedValue) || newFormattedValue.includes("NaN")) {