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

NumericInput: clampValueOnBlur doesn't allow to #6825

Open
AlexeyBogdan95 opened this issue May 24, 2024 · 1 comment
Open

NumericInput: clampValueOnBlur doesn't allow to #6825

AlexeyBogdan95 opened this issue May 24, 2024 · 1 comment

Comments

@AlexeyBogdan95
Copy link

Environment

  • Package version(s): @blueprintjs/core 5.10.3
  • Operating System: MacOS
  • Browser name and version: Chrome 125.0.6422.76

Code Sandbox

Steps to reproduce

  1. Make a NumericInput
  2. Set minorStepSize equals to 0.0001
  3. Enter 15.4933
  4. Blur NumericInput

Actual behavior

The result is 15.493

Expected behavior

The result should be 15.493

Possible solution

When toLocateString function, we need to increase maximumFractionDigits since default value is equal to 3.
https://github.com/palantir/blueprint/blob/81dd30c56fe4c777b2b0cafc0d10b7e11484d1e2/packages/core/src/components/forms/numericInputUtils.ts#L34C63-L34C71

@invliD
Copy link
Member

invliD commented Jun 5, 2024

Could you clarify what the issue is? Your issue title is incomplete, and your actual and expected behavior are the same.

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

No branches or pull requests

2 participants