@@ -116,7 +116,7 @@ class Autocomplete extends React.Component {
116116 * applied to the `<input />` element rendered by `Autocomplete`, unless you
117117 * have specified a custom value for `props.renderInput`. Any properties
118118 * 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,
120120 * aria-autocomplete. `inputProps` is commonly used for (but not limited to)
121121 * placeholder, event handlers (onFocus, onBlur, etc.), autoFocus, etc..
122122 */
@@ -577,12 +577,13 @@ class Autocomplete extends React.Component {
577577 role : 'combobox' ,
578578 'aria-autocomplete' : 'list' ,
579579 'aria-expanded' : open ,
580- autoComplete : 'off' ,
580+ autoComplete : inputProps . autoComplete || 'new-password'
581581 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 ) ,
584584 onChange : this . handleChange ,
585585 onKeyDown : this . composeEventHandlers ( this . handleKeyDown , inputProps . onKeyDown ) ,
586+ onKeyUp : this . composeEventHandlers ( this . handleKeyUp , inputProps . onKeyUp ) ,
586587 onClick : this . composeEventHandlers ( this . handleInputClick , inputProps . onClick ) ,
587588 value : this . props . value ,
588589 } ) }
0 commit comments