Skip to content

Commit

Permalink
fix(event-handler): Fix bug caused by e.preventDefault() in keyDown e…
Browse files Browse the repository at this point in the history
…vent handler
  • Loading branch information
hibiken committed Jul 18, 2016
1 parent 9af47bd commit 66195f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlacesAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ class PlacesAutocomplete extends React.Component {
}

handleInputKeyDown(event) {
event.preventDefault()
const ARROW_UP = 38
const ARROW_DOWN = 40
const ENTER_KEY = 13

switch (event.keyCode) {
case ENTER_KEY:
event.preventDefault()
this._handleEnterKey()
break
case ARROW_DOWN:
Expand Down

0 comments on commit 66195f1

Please sign in to comment.