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

NumberInput enhancement: have an option to allow integers only #8807

Closed
jinzih opened this issue May 31, 2021 · 1 comment
Closed

NumberInput enhancement: have an option to allow integers only #8807

jinzih opened this issue May 31, 2021 · 1 comment
Labels
component: number-input proposal: open This request has gone through triaging. We're determining whether we take this on or not. type: enhancement 💡

Comments

@jinzih
Copy link

jinzih commented May 31, 2021

Use this template if you want to request a new feature, or a change to an
existing feature.

If you are reporting a bug or problem, please use the bug template instead.

Summary

NumberInput is a handy component to use, however, it will be good if it has an option to allow integer numbers only.

Please describe your request in one or two sentences.
NumberInput is a handy component to use, however, it will be good if it has an option to allow integer numbers only.

Clarify if you are asking for design, development, or both design and
development.

Development

Justification

Provide the business reasons for this request.
we use NumberInput for some cases that only allow integers.

Desired UX and success metrics

Describe the full user experience for this feature. Also define the metrics by
which we can measure success/failure for the user.

"Must have" functionality

Highlight any "must have" needs and functionality for the request.

This should not be a full list of functionality; the Carbon team will work with
you to define functionality based on the desired UX.

Specific timeline issues / requests

Do you want this work within a specific time period? Is it related to an
upcoming release?

NB: The Carbon team will try to work with your timeline, but it's not
guaranteed. The earlier you make a request in advance of a desired delivery
date, the better!

Available extra resources

What resources do you have to assist this effort?

Carbon is a collaborative system. We encourage teams to build components and
submit them for integration as either add-ons or core components.

@jnm2377 jnm2377 added the proposal: open This request has gone through triaging. We're determining whether we take this on or not. label Feb 2, 2022
@tay1orjones
Copy link
Member

In #11230 an onKeyUp prop handler was added and can be used to validate/restrict the component to input integers-only. Let us know if this doesn't work for you.

@tay1orjones tay1orjones moved this to Not pursuing in Roadmap Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: number-input proposal: open This request has gone through triaging. We're determining whether we take this on or not. type: enhancement 💡
Projects
Archived in project
Archived in project
Development

No branches or pull requests

4 participants