From 2f488b13c7e6e3e89fd603c1e1c4d9e9e21dbb8c Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 11 Nov 2016 08:29:58 -0500 Subject: Fixed autocomplete not working when not at the start of the textbox (#4532) --- webapp/stores/suggestion_store.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/stores/suggestion_store.jsx') diff --git a/webapp/stores/suggestion_store.jsx b/webapp/stores/suggestion_store.jsx index d87b07076..39bea0b0c 100644 --- a/webapp/stores/suggestion_store.jsx +++ b/webapp/stores/suggestion_store.jsx @@ -121,7 +121,7 @@ class SuggestionStore extends EventEmitter { } addSuggestions(id, terms, items, component, matchedPretext) { - if (this.getPretext(id) !== matchedPretext) { + if (!this.getPretext(id).endsWith(matchedPretext)) { // These suggestions are out of date since the pretext has changed return; } -- cgit v1.2.3-1-g7c22