This should be allowed to be optionally set by a property just like a TextField
return _react2.default.createElement(
'div',
{ style: prepareStyles((0, _simpleAssign2.default)(styles.root, style)) },
_react2.default.createElement(_TextField2.default, _extends({}, other, {
ref: 'searchTextField',
**autoComplete: 'on',**
value: searchText,
onChange: this.handleChange,
onBlur: this.handleBlur,
onFocus: this.handleFocus,
onKeyDown: this.handleKeyDown,
floatingLabelText: floatingLabelText,
hintText: hintText,
fullWidth: fullWidth,
multiLine: false,
errorStyle: errorStyle
})),
I use autocomplete as part of a form. This would be a useful feature. Easy fix. I can provide a PR.
I agree, I think that we should all users to override the autoComplete
property.
Actually, I think that it's a more general issue where we spread the {...other}
properties at the beginning and not at the end of the component. Hence, losing precedence.
Closed by #4783
Most helpful comment
I agree, I think that we should all users to override the
autoComplete
property.Actually, I think that it's a more general issue where we spread the
{...other}
properties at the beginning and not at the end of the component. Hence, losing precedence.