-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(number-input): respect min, max, and step attributes #5906
feat(number-input): respect min, max, and step attributes #5906
Conversation
Deploy preview for carbon-elements ready! Built with commit 290fca5 |
Deploy preview for carbon-components-react ready! Built with commit 290fca5 https://deploy-preview-5906--carbon-components-react.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work 🎉! - Just one thing, would you be able to add tests for mix/max capping with empty - Thanks @emyarod!<input>
? (e.g. for hitting backspace key)
Update: I now realized that the changed logic won't be applied for such scenario - My apologies.
f1fc069
to
d5aee2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected 💪 👍 ✅
Closes #5885
This PR adds support for the
min
,max
, andstep
attributes in the number input componentTesting / Reviewing
Confirm the
min
,max
, andstep
values are respected when incrementing and decrementing the number input