Skip to content

Commit

Permalink
added disabled prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmullins committed Sep 25, 2015
1 parent 30cbcc8 commit 7100d43
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ Default: `''`

Add an additional class to the geosuggest container.

#### disabled
Type: `Boolean`
Default: `false`

Defines whether the input is disabled.

#### location
Type: `google.maps.LatLng`
Default: `null`
Expand Down
4 changes: 3 additions & 1 deletion src/Geosuggest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ var Geosuggest = React.createClass({
googleMaps: google && google.maps,
onFocus: noop,
onBlur: noop,
onChange: noop
onChange: noop,
disabled: false
};
},

Expand Down Expand Up @@ -292,6 +293,7 @@ var Geosuggest = React.createClass({
type="text"
value={this.state.userInput}
placeholder={this.props.placeholder}
disabled={this.props.disabled}
onKeyDown={this.onInputKeyDown}
onChange={this.onInputChange}
onFocus={this.onFocus}
Expand Down

0 comments on commit 7100d43

Please sign in to comment.