From d8f57da28e7b4fe762de3f890507d9f5c830247f Mon Sep 17 00:00:00 2001 From: Becky Siegel Date: Thu, 26 Oct 2017 11:42:28 -0700 Subject: [PATCH] Fix autocomplete on android There was an issue where typing in an autocomplete did not behave as expected. Many letters would get duplicated, and the backspace did not work. It seems to have been caused by focusing on the paper-input rather than the input element inside the paper-input. Bug: Issue 7566 Change-Id: I115aa9cd0ab93b4e428a1df05e24519f6c55be5b --- .../app/elements/shared/gr-autocomplete/gr-autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.js b/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.js index dc638e133b..a263583020 100644 --- a/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.js +++ b/polygerrit-ui/app/elements/shared/gr-autocomplete/gr-autocomplete.js @@ -287,7 +287,7 @@ default: // For any normal keypress, return focus to the input to allow for // unbroken user input. - this.$.input.focus(); + this.$.input.inputElement.focus(); } this.fire('input-keydown', {keyCode: e.keyCode, input: this.$.input}); },