From 66195f1a7db5c7584dd7f9010979c5f9ea1af7fc Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Mon, 18 Jul 2016 11:54:22 -0700 Subject: [PATCH] fix(event-handler): Fix bug caused by e.preventDefault() in keyDown event handler --- src/PlacesAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlacesAutocomplete.js b/src/PlacesAutocomplete.js index 2ced8386..9c49a403 100644 --- a/src/PlacesAutocomplete.js +++ b/src/PlacesAutocomplete.js @@ -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: