Repository navigation
Conversation
Member
|
Thanks for your interest in palantir/blueprint, @auraseb! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
Generate changelog in
|
Signed-off-by: Sebastian Turner <sebastiant3484@gmail.com>
sebxt
force-pushed
the
fix/numericinput-step-precision
branch
from
October 20, 2026 23:26
a03f776 to
1f695aa
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #0000
Checklist
Changes proposed in this pull request:
NumericInputderived its rounding precision fromminorStepSizealone whenever it was set, so astepSizeormajorStepSizewith more decimal places was rounded away. For example<NumericInput stepSize={0.25} />(defaultminorStepSize={0.1}) incremented to0.3,0.6,0.9, andmajorStepSize={2.5}withminorStepSize={null}incremented to3.getStepMaxPrecisionnow returns the largest decimal place count among the non nullstepSize,minorStepSizeandmajorStepSize. Configurations whereminorStepSizealready had the most decimals behave exactly as before, andminorStepSize={null}with integer steps still limits the input to integers.The "Numeric precision" docs section is updated to describe the new rule. Two tests cover the
stepSizeandmajorStepSizecases; both fail on develop.Reviewers should focus on:
Whether
majorStepSizeshould be part of the rule. I included it because it has the same problem and the default (10) never adds precision.Screenshot
N/A
Fixes #8314