mui-org/material-ui

[TextField] Enhance TextField to support number input arrows #3578

seanrankin posted onGitHub

The browser vendor's implementations of the input type="number" are all over the board and are pretty disruptive to the design of the Material UI spec. If would be awesome to add number arrows that fit better with the aesthetic of MIU.

As far as I can tell, Google hasn't included this in the Material UI spec.


As always, PR welcome! :+1:

posted by mbrookes about 9 years ago

I think this provides an interesting challenge - and the composability of <TextField /> should probably be a pre-requisite.

Internally we're "fudging" TextField to be a bit more composable.

We've controls like <Integer /> <Decimal /> <Currency />, which we wrap in <Field /> which has a rather nasty implementation at present. i.e. <Integer /> is basically an <input type='number' /> with some custom events for keyboard/paste restriction.

We actually gave up with arrows, because they are non-materialy, but use <Popover /> with a <NumPad /> on mobile/tablet devices instead of the on screen keyboard to provide some quick entry.

posted by chrismcv about 9 years ago

@chrismcv We should hold off on any TextField related features until the component has been reworked. It's got a number of issues at the moment which will only be exasperated by adding more features to it.

posted by nathanmarks about 9 years ago

and the composability of <TextField /> should probably be a pre-requisite.

@nathanmarks that's what I meant!

posted by chrismcv about 9 years ago

I just had a need for this particular functionality and was wondering if there had been any progress on this, or if I should expect to roll my own? Thanks

posted by peisenmann over 8 years ago

@rogerstorm funded this issue with $20. See it on IssueHunt

posted by IssueHuntBot over 6 years ago

Fund this Issue

$20.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

rogerstorm funded 20.00 for mui-org/material-ui# 3578
over 6 years ago