Comments (3)
@oliviertassinari readOnly
needs to be passed through InputProps
for those components, e.g. TextField:
<TextField InputProps={{ readOnly: true }} />
I believe what @Munhuggas is suggesting is to be able do it directly like disabled
:
<TextField readOnly disabled />
from material-ui.
Oh is this not already supported today?
from material-ui.
I suspect we already saw this issue in the past, around 2018. The TextField can't possibly handle the forwarding of all the props, it would create too much bundle size. So to consider if it's worth it. I suspect the stance in the past was to say that readOnly is too much of an edge case to be worth the runtime cost.
from material-ui.
Related Issues (20)
- [joy-ui] How to adjust theme spacing with HTML font-size: 10px HOT 2
- [joy-ui][Checkbox] Not using the correct font in the Next.js example HOT 6
- [material-ui][Slider] Sometimes the value in onChange and the value in onChangeCommitted are output differently HOT 9
- [material-ui][Tooltip] enterDelay prop resets timer on every child mouseOver event HOT 3
- [joy-ui][FormControl] Label is being displayed above the input HOT 2
- [icons] Add a drone icon HOT 4
- Same code in both JS and TS variants for multiple components on mui docs HOT 1
- [material-ui][Slider][CssVarsProvider] Custom `SliderThumb` with `CssVarsProvider` is broken after upgrade `@mui/material` to `5.15.14` HOT 1
- [docs-infra] Multi-tab demo component improvements
- [material-ui][Autocomplete] Formik Form with multiple fields triggering all fields to be opened HOT 4
- [joy-ui][Theme] Components use radius 'sm' irrespective of their own size.
- [JOY with material-ui]
- [material-ui][Typography] Trouble adding new boolean props HOT 2
- [material-ui][Tooltip] Unable to target `MuiTooltip-tooltip` class HOT 1
- [material-ui][Slider] TypeError: color.charAt is not a function error message after upgrade @mui/material to 5.15.14 HOT 5
- [pigment-css] Invalid CSS output w/ pseudo classes in theme.vars HOT 4
- [TextField] Add an isValid state to correspond to the error state. HOT 2
- [pigment-css] theme does not contain other properties except `vars` HOT 3
- [material-ui][Autocomplete] Adding start adornment on small autocompletes causes text to wrap HOT 4
- [material-ui][Switch] "Unsupported `76, 78, 100` color" error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.