-
Notifications
You must be signed in to change notification settings - Fork 85
💡 Proposal - Number input component #2160
Copy link
Copy link
Open
Labels
needs reviewProposal/bug that needs to be reviewed by maintainersProposal/bug that needs to be reviewed by maintainersproposalstaleUsed to mark when there was no activity for a set period of timeUsed to mark when there was no activity for a set period of time
Metadata
Metadata
Assignees
Labels
needs reviewProposal/bug that needs to be reviewed by maintainersProposal/bug that needs to be reviewed by maintainersproposalstaleUsed to mark when there was no activity for a set period of timeUsed to mark when there was no activity for a set period of time
Forma 36 contribution proposal
The problem
We provide only native input with
type="number". But due to different browsers' implementation and known issue with ReactonChangecallback (facebook/react#6556) it's worth replicating the native number input logic withinput type="text".The proposed solution
Create a separate Number component that will replicate native number input validation and a11y controls.
We've already implemented it in our
field-editor-number:contentful/field-editors#1203
Breaking changes
NO.