From 81c5cf7d66abf89f9d22a5192da8f568144d20f8 Mon Sep 17 00:00:00 2001 From: Kasper Nilsson Date: Wed, 21 Sep 2016 11:05:51 -0700 Subject: [PATCH] Fix logic error in gr-autocomplete In 44c1b91, I added logic for showing and hiding autocomplete suggestions based on whether or not the input child element was focused. This implementation missed the case where autocomplete suggestions are clicked on. Bug: Issue 4603 Change-Id: I076f8790a9776bfff79c2fb564f7ab16586a7cc6 --- .../gr-autocomplete/gr-autocomplete.html | 1 - .../shared/gr-autocomplete/gr-autocomplete.js | 22 +++++++++++++++---- .../gr-autocomplete/gr-autocomplete_test.html | 12 +++++----- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.html b/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.html index 32c7c70e85..864114f3e9 100644 --- a/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.html +++ b/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.html @@ -56,7 +56,6 @@ limitations under the License. placeholder="[[placeholder]]" on-keydown="_handleInputKeydown" on-focus="_onInputFocus" - on-blur="_onInputBlur" autocomplete="off" />