summaryrefslogtreecommitdiffstats
path: root/webapp/stores/suggestion_store.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-11-11 08:29:58 -0500
committerGitHub <noreply@github.com>2016-11-11 08:29:58 -0500
commit2f488b13c7e6e3e89fd603c1e1c4d9e9e21dbb8c (patch)
tree5744ea8389f4f7fa3421f798fe070259ed014d81 /webapp/stores/suggestion_store.jsx
parent6615db7e8511a187ce308ca5e10a08352e9ce3d0 (diff)
downloadchat-2f488b13c7e6e3e89fd603c1e1c4d9e9e21dbb8c.tar.gz
chat-2f488b13c7e6e3e89fd603c1e1c4d9e9e21dbb8c.tar.bz2
chat-2f488b13c7e6e3e89fd603c1e1c4d9e9e21dbb8c.zip
Fixed autocomplete not working when not at the start of the textbox (#4532)
Diffstat (limited to 'webapp/stores/suggestion_store.jsx')
-rw-r--r--webapp/stores/suggestion_store.jsx2
1 files changed, 1 insertions, 1 deletions
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;
}