Feature request: ability to override the Input component of a TextField #12472
jedwards1211 posted onGitHub
<!--- Provide a general summary of the feature in the Title above -->
<!-- Thank you very much for contributing to Material-UI by creating an issue! ❤️ To avoid duplicate issues we ask you to check off the following list. -->
<!-- Checked checkbox should look like this: [x] -->
- This is a v1.x issue. <!-- (v0.x is no longer maintained) -->
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
<!--- Describe how it should work. -->
redux-form-material-ui
v5 has a quick-and-easy TextField
adapter component that injects the necessary helperText
, value
, onChange
, etc.
But to be able to use it for an address field, I need to override the Input
component with something that does autocomplete (e.g. using react-places-autocomplete
)
Current Behavior
<!--- Explain the difference from current behavior. -->
Right now I'd have to basically duplicate the code in TextField
, but with my own Input
component instead.