@@ -116,7 +116,7 @@ class Autocomplete extends React.Component {
116
116
* applied to the `<input />` element rendered by `Autocomplete`, unless you
117
117
* have specified a custom value for `props.renderInput`. Any properties
118
118
* supported by `HTMLInputElement` can be specified, apart from the
119
- * following which are set by `Autocomplete`: value, autoComplete, role,
119
+ * following which are set by `Autocomplete`: value, role,
120
120
* aria-autocomplete. `inputProps` is commonly used for (but not limited to)
121
121
* placeholder, event handlers (onFocus, onBlur, etc.), autoFocus, etc..
122
122
*/
@@ -577,12 +577,13 @@ class Autocomplete extends React.Component {
577
577
role : 'combobox' ,
578
578
'aria-autocomplete' : 'list' ,
579
579
'aria-expanded' : open ,
580
- autoComplete : 'off' ,
580
+ autoComplete : inputProps . autoComplete || 'new-password'
581
581
ref : this . exposeAPI ,
582
- onFocus : this . handleInputFocus ,
583
- onBlur : this . handleInputBlur ,
582
+ onFocus : this . composeEventHandlers ( this . handleInputFocus , inputProps . onFocus ) ,
583
+ onBlur : this . composeEventHandlers ( this . handleInputBlur , inputProps . onBlur ) ,
584
584
onChange : this . handleChange ,
585
585
onKeyDown : this . composeEventHandlers ( this . handleKeyDown , inputProps . onKeyDown ) ,
586
+ onKeyUp : this . composeEventHandlers ( this . handleKeyUp , inputProps . onKeyUp ) ,
586
587
onClick : this . composeEventHandlers ( this . handleInputClick , inputProps . onClick ) ,
587
588
value : this . props . value ,
588
589
} ) }
0 commit comments