base-ui
base-ui copied to clipboard
[number field] Implement `inputmode` for mobile keyboard support
Raised in https://github.com/mui/material-ui/pull/36119#issuecomment-1678269343
The inputmode
attribute hints to browsers for devices with software keyboards to determine which keyboard to provide when an input is focused. It should be returned by getInputProps()
.
References
- https://css-tricks.com/everything-you-ever-wanted-to-know-about-inputmode/
- https://react-spectrum.adobe.com/blog/how-we-internationalized-our-numberfield.html#mobile
Manually test/benchmark first, we need to make sure the -
and .
characters are available
This is supported by the new NumberField component.