Skip to content

fix(ui5-step-input): prevent false validation error with valuePrecision#12778

Merged
hinzzx merged 2 commits into
mainfrom
step-input-val-prec-fix
Dec 10, 2025
Merged

fix(ui5-step-input): prevent false validation error with valuePrecision#12778
hinzzx merged 2 commits into
mainfrom
step-input-val-prec-fix

Conversation

@hinzzx

@hinzzx hinzzx commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

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").

Fixes: #12677

@ui5-webcomponents-bot

ui5-webcomponents-bot commented Dec 8, 2025

Copy link
Copy Markdown
Collaborator

🧹 Preview deployment cleaned up: https://pr-12778--ui5-webcomponents.netlify.app

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 8, 2025 12:48 Inactive
@hinzzx hinzzx merged commit 08f8e35 into main Dec 10, 2025
21 of 22 checks passed
@hinzzx hinzzx deleted the step-input-val-prec-fix branch December 10, 2025 08:20
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 10, 2025 08:21 Inactive
@ui5-webcomponents-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version v2.18.0-rc.0 🎉

The release is available on v2.18.0-rc.0

Your semantic-release bot 📦🚀

@ui5-webcomponents-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version v2.18.0 🎉

The release is available on v2.18.0

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[StepInput]: [Value precision for 2 decimal values is showing Invalid Entry Error]

4 participants