You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 20, 2026. It is now read-only.
It seems impossible to see the placeholder for the <Number /> input element.
Whenever initialValue/defaultValue props are passed 0, null, undefined or even "" values the value="0" HTML attribute is always rendered.
The only solution for displaying the placeholder is passing value="" prop, but obviously the prop doesn't use the built-in onChange handling then and becomes non-editable.
Hey @havelock. <Number /> is a tricky component. At the moment it does not accept placeholder prop. The problem is with how Modifiers work. I'd recommend you to use <Text /> instead and parse it into number you need (e.g. parseInt).
Activity
MartynasZilinskas commentedon Feb 12, 2018
Hey @havelock.
<Number />is a tricky component. At the moment it does not acceptplaceholderprop. The problem is with howModifierswork. I'd recommend you to use<Text />instead and parse it into number you need (e.g.parseInt).