From 9def249af133c0f138d25bd24ea8c6bf50f39be2 Mon Sep 17 00:00:00 2001 From: N-Shar-ma Date: Thu, 26 Jan 2023 14:36:34 +0530 Subject: [PATCH] typeahead: Fix bug where typeahead showed momentarily on shift + tab. Break on `keyup` for case of `shift` key, instead of letting it trigger the typeahead. Fixes: #24152. --- static/third/bootstrap-typeahead/typeahead.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/third/bootstrap-typeahead/typeahead.js b/static/third/bootstrap-typeahead/typeahead.js index 40b6a3bf46..a4ab2ec3e7 100644 --- a/static/third/bootstrap-typeahead/typeahead.js +++ b/static/third/bootstrap-typeahead/typeahead.js @@ -475,6 +475,11 @@ import {get_string_diff} from "../../js/util"; } break + // to stop typeahead from showing up momentarily + // when shift + tabbing to a field with typeahead + case 16: // shift + break + default: var hideOnEmpty = false if (e.keyCode === 8 && this.options.helpOnEmptyStrings) { // backspace