Skip to content

Commit

Permalink
Autocomplete is allowed and defaults to off
Browse files Browse the repository at this point in the history
  • Loading branch information
treyhuffine committed May 23, 2017
1 parent fd30f21 commit c97ea31
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-geosuggest",
"version": "2.1.0",
"version": "2.1.1",
"description": "A React autosuggest for the Google Maps Places API.",
"main": "module/Geosuggest.js",
"author": "Robert Katzki <katzki@ubilabs.net>",
Expand Down
1 change: 1 addition & 0 deletions src/filter-input-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
const allowedAttributes = [
'autoFocus',
'autoComplete',
'disabled',
'form',
'formAction',
Expand Down
4 changes: 2 additions & 2 deletions src/input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class Input extends React.Component {
return <input className={classes}
ref='input'
type='text'
autoComplete='off'
{...attributes}
value={this.props.value}
style={this.props.style}
Expand All @@ -133,7 +132,8 @@ Input.defaultProps = {
value: '',
ignoreTab: false,
onKeyDown: () => {},
onKeyPress: () => {}
onKeyPress: () => {},
autoComplete: 'off'
};

export default Input;
3 changes: 2 additions & 1 deletion src/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ export default {
suggestItem: React.PropTypes.object
}),
ignoreTab: React.PropTypes.bool,
label: React.PropTypes.string
label: React.PropTypes.string,
autoComplete: React.PropTypes.string
};

0 comments on commit c97ea31

Please # to comment.