Closed Giners closed 6 years ago
The docs say that the textFieldProps prop can be used to spread props onto the <TextField> component which is responsible for rendering the <input> element. See here: https://github.com/Giners/mui-places-autocomplete#textFieldProps
textFieldProps
<TextField>
<input>
Per the Material-UI docs it says that providing the id prop will set the value of id on the rendered <input> element. See here: https://material-ui-next.com/api/text-field/
id
This doesn't appear to be working. Take this code snippet:
<MUIPlacesAutocomplete textFieldProps={{ id: 'my-cool-input-id' }} />
The value of id on the rendered <input> element is actually equal to mui-places-autocomplete-input and not my-cool-input-id.
mui-places-autocomplete-input
my-cool-input-id
The docs say that the
textFieldProps
prop can be used to spread props onto the<TextField>
component which is responsible for rendering the<input>
element. See here: https://github.com/Giners/mui-places-autocomplete#textFieldPropsPer the Material-UI docs it says that providing the
id
prop will set the value ofid
on the rendered<input>
element. See here: https://material-ui-next.com/api/text-field/This doesn't appear to be working. Take this code snippet:
The value of
id
on the rendered<input>
element is actually equal tomui-places-autocomplete-input
and notmy-cool-input-id
.