Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][NumericTextBox] When min is set to 0 entering a negative value and bluring the input sets the input value to -0 #2889

Open
Yanko-Georgiev opened this issue Feb 17, 2025 · 0 comments
Labels
Bug Item which indicates that something is not working C: NumericTextBox KendoReact pkg:Inputs SEV: Low

Comments

@Yanko-Georgiev
Copy link
Collaborator

Yanko-Georgiev commented Feb 17, 2025

Description

When the NumericTexyBox is integrated inside a Form and the min property is set to 0, typing a negative number will reset the value to 0, however, the input displays -0 instead. Using a different format like 'n2' will display the reset value correctly as 0.00.

Steps To Reproduce

  1. Open the following CodesandBox example: https://codesandbox.io/p/sandbox/relaxed-wu-8tg8fc?file=%2Fapp%2Fapp.tsx%3A14%2C26-14%2C34
  2. Type -5
  3. Notice the value is reset to -0

Actual Behavior

Bluring the NumericTextBox when it has a negative value and a min set to 0, displays the value as -0.

Expected Behavior

Bluring the NumericTextBox should display the actual value inside the input.

Reported in TicketID: 1678473

@Yanko-Georgiev Yanko-Georgiev added Bug Item which indicates that something is not working C: NumericTextBox KendoReact pkg:Inputs SEV: Low labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Item which indicates that something is not working C: NumericTextBox KendoReact pkg:Inputs SEV: Low
Projects
None yet
Development

No branches or pull requests

1 participant