Skip to content

Improve numeric input editing by allowing removal of trailing zeros #8

Description

@AteebNoOne

Feature summary

Allow users to edit numeric input fields (such as Quantity, Price, and similar inputs) naturally without automatically restoring trailing zeros while they are typing.

Problem to solve

Currently, numeric inputs immediately reformat values during keyboard entry. This makes it difficult or impossible to delete trailing zeros or edit the decimal portion of a number. For example, when a field contains 10.00, attempting to remove the decimal zeros results in them being automatically reinserted, creating a frustrating editing experience.

Users should be able to freely modify numeric values while editing, with formatting applied only after editing is complete if necessary.

Proposed solution

Update the numeric input behavior so that formatting does not occur while the user is actively typing.

Suggested behavior:

Allow users to freely edit the numeric value, including deleting trailing zeros and the decimal portion.
Preserve standard numeric validation.
Apply any display formatting (such as fixed decimal places) only after the input loses focus (onBlur) or when the value is submitted, if required by the application.
Ensure this behavior is consistent across all numeric input fields.

Alternatives considered

Continue formatting on every keystroke (current behavior). This keeps values consistently formatted but results in a poor editing experience.
Delay formatting using a debounce. While this reduces interruptions, formatting can still occur before the user has finished editing.
Remove automatic formatting entirely. This provides maximum editing freedom but may not meet display or business formatting requirements after input is complete.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Fields

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions