@brightspace-ui/core 1.215.2 → 1.215.3
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,13 +264,14 @@ class InputNumber extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeC
|
|
|
264
264
|
countDecimalDigits(this._valueTrailingZeroes, false),
|
|
265
265
|
this.maxFractionDigits
|
|
266
266
|
);
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
267
|
+
let valueTrailingZeroes = this.value.toString();
|
|
268
|
+
const decimalDiff = (numDecimals - countDecimalDigits(valueTrailingZeroes, false));
|
|
269
|
+
if (decimalDiff > 0) {
|
|
270
|
+
if (decimalDiff === numDecimals) {
|
|
271
|
+
valueTrailingZeroes += '.';
|
|
272
272
|
}
|
|
273
|
-
|
|
273
|
+
valueTrailingZeroes = valueTrailingZeroes.padEnd(valueTrailingZeroes.length + decimalDiff, '0');
|
|
274
|
+
}
|
|
274
275
|
return valueTrailingZeroes;
|
|
275
276
|
}
|
|
276
277
|
set valueTrailingZeroes(val) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.215.
|
|
3
|
+
"version": "1.215.3",
|
|
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",
|