Commit 08f8e35
authored
fix(ui5-step-input): prevent false validation error with valuePrecision (#12778)
Previously when users entered whole numbers or numbers with fewer decimals than required by valuePrecision, the component incorrectly showed "Invalid Entry" error even though the value was automatically formatted correctly.
Now integer values will always be formatted with the correct precision via toFixed(), making them valid regardless of how they were entered (e.g., "5" or "5.0" with valuePrecision=2 both become "5.00").1 parent 43e545a commit 08f8e35
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
516 | 523 | | |
517 | 524 | | |
518 | 525 | | |
| |||
0 commit comments