We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8adb03 commit 411583cCopy full SHA for 411583c
1 file changed
packages/main/src/StepInput.ts
@@ -513,6 +513,13 @@ class StepInput extends UI5Element implements IFormInputElement {
513
}
514
515
get _isValueWithCorrectPrecision() {
516
+ // checks if the value will be displayed with correct precision
517
+ // _displayValue has special formatting logic
518
+ if ((this.value === 0) || (Number.isInteger(this.value))) {
519
+ // integers and zero will be formatted with toFixed, so they're always valid
520
+ return true;
521
+ }
522
+
523
// gets either "." or "," as delimiter which is based on locale, and splits the number by it
524
const delimiter = this.input?.value?.includes(".") ? "." : ",";
525
const numberParts = this.input?.value?.split(delimiter);
0 commit comments