Skip to content

Improves UpDown text input clamping behavior#4064

Merged
Keboo merged 1 commit into
masterfrom
keboo/bug4061
Jun 5, 2026
Merged

Improves UpDown text input clamping behavior#4064
Keboo merged 1 commit into
masterfrom
keboo/bug4061

Conversation

@Keboo
Copy link
Copy Markdown
Member

@Keboo Keboo commented Jun 5, 2026

Addresses an issue in the NumericUpDown control where, during user input, a partially typed number that temporarily fell outside the Minimum or Maximum range would cause the control to immediately clamp the value. This clamped value would then overwrite the user's ongoing input in the textbox, making it difficult to complete the desired number.

Introduces an _isTextChanging flag to prevent the textbox from being programmatically updated when the Value changes as a direct result of user input in the textbox. This ensures that the user's input remains undisturbed during typing, allowing them to complete their intended value without premature overwrites.

A new UI test validates this improved behavior, confirming that the control now correctly handles typing sequences.

Fixes #4061

fix: Prevent NumericUpDown from resetting text input during typing
```
```
Introduces a flag to temporarily disable the text box's value update
while the user is actively typing. This prevents the control from
prematurely overwriting partial user input, which previously made
it difficult to enter values when a minimum or maximum was set.

Resolves #4061
```
@Keboo Keboo added this to the 5.3.3 milestone Jun 5, 2026
@Keboo Keboo merged commit 7f56dc7 into master Jun 5, 2026
2 checks passed
@Keboo Keboo deleted the keboo/bug4061 branch June 5, 2026 07:21
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.

NumericUpDown immediately coerces below-minimum intermediate input, causing incorrect text/caret behavior when typing values

1 participant