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

fix: use step increment precision when precisionProp is not specified #7949

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

markdowney
Copy link

πŸ“ Description

When using the NumberInput, if your value is an Integer (eg: 0 or 1) and you haven't specified a precision,
holding down Ctrl or ⌘, and pressing ⬆ or ⬇ should update the value by 0.1 * step, but it doesn't.

⛳️ Current behavior (updates)

<NumberInput value={0} step={1} />

Holding down Ctrl or ⌘, and pressing ⬆ or ⬇ doesn't update the value.

πŸš€ New behavior

<NumberInput value={0} step={1} />

Holding down Ctrl or ⌘, and pressing ⬆ or ⬇ increment or decrements the value by 0.1 * step.

πŸ’£ Is this a breaking change (Yes/No):

No.

πŸ“ Additional Information

@changeset-bot
Copy link

changeset-bot bot commented Aug 15, 2023

πŸ¦‹ Changeset detected

Latest commit: 351e033

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@chakra-ui/number-input Patch
@chakra-ui/counter Patch
@chakra-ui/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Aug 15, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated (UTC)
chakra-ui-storybook βœ… Ready (Inspect) Visit Preview Sep 5, 2023 9:19pm

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.

None yet

1 participant