diff options
Diffstat (limited to 'webapp/components/suggestion/provider.jsx')
-rw-r--r-- | webapp/components/suggestion/provider.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/suggestion/provider.jsx b/webapp/components/suggestion/provider.jsx index 39bb135a8..a5b54fb26 100644 --- a/webapp/components/suggestion/provider.jsx +++ b/webapp/components/suggestion/provider.jsx @@ -7,6 +7,7 @@ export default class Provider { constructor() { this.latestPrefix = ''; this.latestComplete = true; + this.disableDispatches = false; } handlePretextChanged(suggestionId, pretext) { // eslint-disable-line no-unused-vars @@ -22,6 +23,10 @@ export default class Provider { } shouldCancelDispatch(prefix) { + if (this.disableDispatches) { + return true; + } + if (prefix === this.latestPrefix) { this.latestComplete = true; } else if (this.latestComplete) { |