Skip to content

Conversation

@GDamyanov
Copy link
Contributor

@GDamyanov GDamyanov commented Dec 2, 2025

This PR introduces two new features to the ui5-step-input component:

  • Mouse Wheel Support: Users can now increment or decrement the value using the mouse wheel when the component is focused.
  • Thousand Separator Formatting: The displayed value now uses locale-aware thousand separators for improved readability.

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Dec 2, 2025

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 2, 2025 09:38 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 2, 2025 13:14 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 3, 2025 08:54 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 3, 2025 09:01 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 3, 2025 09:10 Inactive
@GDamyanov GDamyanov changed the title feat(ui5-step-input): enhancements feat(ui5-step-input): add thousands separator & scrolling Dec 3, 2025
@GDamyanov GDamyanov marked this pull request as ready for review December 3, 2025 09:26
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 3, 2025 09:31 Inactive
@GDamyanov GDamyanov requested a review from hinzzx December 4, 2025 08:57
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 5, 2025 07:12 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 5, 2025 11:21 Inactive
Copy link
Contributor

@hinzzx hinzzx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we have thousands separator this sometimes causes the _isValueWithCorrectPrecision check to evaluate wrong.

The reason behind that is because we split the number into decilmals and whole numbers. So when we have 500,000 for example, it assumes that the three zeros behind are 'precision' numbers.

@hinzzx
Copy link
Contributor

hinzzx commented Dec 8, 2025

We also have a introduced a bug, where when we type a number, and then Submit (e.g. press Enter), if we then try to continue typing it is not working—it was working before.

EDIT: Checked and it worked with different locale, so it might be something related to the comma separators mentioned in the above comment.

}
}

_getValueOnkeyDown(e: KeyboardEvent) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is trying to implement multiple responsibilities.
We should separate cursor position tracking, extract string manipulation into a pure function, isolate validation logic from parsing, then delegate separator checks to a dedicated validate method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in c74eaf8

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 9, 2025 09:55 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 9, 2025 15:11 Inactive
@GDamyanov GDamyanov requested a review from hinzzx December 10, 2025 09:28
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 10, 2025 09:34 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 10, 2025 12:16 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 10, 2025 12:52 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 10, 2025 12:59 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview December 10, 2025 15:02 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants