carbon-design-system / carbon-for-ibm-dotcom

Carbon for IBM.com is based on the Carbon Design System for IBM
https://www.ibm.com/standards/carbon/
Apache License 2.0
271 stars 156 forks source link

[carbon web-component]: number-input needs max attribute to work #11709

Open TuoW opened 7 months ago

TuoW commented 7 months ago

Description

when use , if no max,, the validate always return error

Component(s) impacted

### Browser _No response_ ### Carbon for IBM.com version 2.7.0 ### Severity Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround. ### Application/website UAB automation ### Package @carbon/web-components ### CodeSandbox example https://stackblitz.com/edit/github-yjlrer?file=index.html ### Steps to reproduce the issue (if applicable) _No response_ ### Release date (if applicable) _No response_ ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/blob/main/.github/CODE_OF_CONDUCT.md) - [ ] I checked the [current issues](https://github.com/carbon-design-system/carbon-for-ibm-dotcom/issues) for duplicate issues
emyarod commented 7 months ago

adding info from #11710

CodeSandbox example

https://stackblitz.com/edit/github-yjlrer-44dwey

Steps to reproduce the issue (if applicable)

initialize a number input without min/max attribute(s)