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
While implementing security features on a form and not allowing users to edit certain fields under certain circumstances (while still displaying the values), I came across the SelectField component unable to be set as read only.
Since the component is behaving like a TextField, it is missing this feature.
The desired behavior is that the menu would not open if the SelectField is read only.
Versions
Material-UI: 0.17.0
React: 15.4.2
Browser: Google Chrome latest
The text was updated successfully, but these errors were encountered:
You can try with the disabled prop, then modify the style to match a non-disabled TextField ?
but in this case, values from dropdown menu won't be displayed.
If you actually want the menu to display options, you can set MenuItems disabled prop in same way as above suggestion. This should deactivate the onItemTouchTap event if i'm not mistaken...
oliviertassinari
changed the title
SelectField does not support readOnly property
[SelectField] Does not support readOnly property
Mar 26, 2017
Problem description
While implementing security features on a form and not allowing users to edit certain fields under certain circumstances (while still displaying the values), I came across the SelectField component unable to be set as read only.
Since the component is behaving like a TextField, it is missing this feature.
The desired behavior is that the menu would not open if the SelectField is read only.
Versions
The text was updated successfully, but these errors were encountered: