Skip to content

Conversation

psychedelicious
Copy link
Collaborator

Summary

Determine the "base" step for floats. If no multipleOf is provided, the "base" step is undefined, meaning the float can have any number of decimal places.

The UI library does its own step constrains though and is rounding to 3 decimal places. Probably need to update the logic in the UI library to have truly arbitrary precision for float fields.

Related Issues / Discussions

In #8450 a bug was fixed, the constrainValue prop wasn't added on float fields when it should have been. Adding it added more constraints to the fields, altering their precision.

QA Instructions

float fields should behave like they did before #8450 now

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Aug 22, 2025
@psychedelicious psychedelicious force-pushed the psyche/fix/ui/number-input-precision branch from 08064a9 to 0aff954 Compare August 22, 2025 03:31
Determine the "base" step for floats. If no `multipleOf` is provided,
the "base" step is `undefined`, meaning the float can have any number of
decimal places.

The UI library does its own step constrains though and is rounding to 3
decimal places. Probably need to update the logic in the UI library to
have truly arbitrary precision for float fields.
@psychedelicious psychedelicious force-pushed the psyche/fix/ui/number-input-precision branch from 0aff954 to 6dba14f Compare August 22, 2025 03:33
@psychedelicious psychedelicious enabled auto-merge (rebase) August 22, 2025 03:33
@psychedelicious psychedelicious merged commit 47d7d93 into main Aug 22, 2025
13 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/ui/number-input-precision branch August 22, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants