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
245 stars 151 forks source link

The placeholder property for number input not working #11731

Open uxsniper opened 2 months ago

uxsniper commented 2 months ago

Description

The placeholder property for number input seems not to be working for carbon web components. Is this a known issue?

Component(s) impacted

Number input

Browser

No response

Carbon for IBM.com version

^2.7.0

Severity

Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.

Application/website

UAB

Package

@carbon/web-components

CodeSandbox example

https://codesandbox.io/p/devbox/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/basic/components/number-input?file=%2Fsrc%2Findex.js%3A11%2C1

Steps to reproduce the issue (if applicable)

No response

Release date (if applicable)

No response

Code of Conduct

annawen1 commented 2 months ago

The component goes into error state when user does not set the value property. We should set the default for the value property to 0