@brightspace-ui/core 1.223.2 → 1.223.4

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.
@@ -264,14 +264,13 @@ class InputNumber extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeC
264
264
  countDecimalDigits(this._valueTrailingZeroes, false),
265
265
  this.maxFractionDigits
266
266
  );
267
- let valueTrailingZeroes = this.value.toString();
268
- const decimalDiff = (numDecimals - countDecimalDigits(valueTrailingZeroes, false));
269
- if (decimalDiff > 0) {
270
- if (decimalDiff === numDecimals) {
271
- valueTrailingZeroes += '.';
267
+ const valueTrailingZeroes = new Intl.NumberFormat(
268
+ 'en-US',
269
+ {
270
+ minimumFractionDigits: numDecimals,
271
+ useGrouping: false
272
272
  }
273
- valueTrailingZeroes = valueTrailingZeroes.padEnd(valueTrailingZeroes.length + decimalDiff, '0');
274
- }
273
+ ).format(this.value);
275
274
  return valueTrailingZeroes;
276
275
  }
277
276
  set valueTrailingZeroes(val) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.223.2",
3
+ "version": "1.223.4",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",