diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-01-25 21:16:18 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-01-25 23:16:18 -0300 |
commit | 931e712af165a64e0ab4f9813cca8f6213b89d7c (patch) | |
tree | 1a1ca78ce522e83f000fc31b4bc568157598d7a4 /webapp/components/suggestion/suggestion_box.jsx | |
parent | f7476b2fb6a01d50868a128c1d1f77c14691482d (diff) | |
download | chat-931e712af165a64e0ab4f9813cca8f6213b89d7c.tar.gz chat-931e712af165a64e0ab4f9813cca8f6213b89d7c.tar.bz2 chat-931e712af165a64e0ab4f9813cca8f6213b89d7c.zip |
Fixed ChannelMentionProvider matching completed mentions (#5188)
Diffstat (limited to 'webapp/components/suggestion/suggestion_box.jsx')
-rw-r--r-- | webapp/components/suggestion/suggestion_box.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index e9f7c3699..29b9b2d8b 100644 --- a/webapp/components/suggestion/suggestion_box.jsx +++ b/webapp/components/suggestion/suggestion_box.jsx @@ -153,6 +153,12 @@ export default class SuggestionBox extends React.Component { window.requestAnimationFrame(() => { Utils.setCaretPosition(textbox, prefix.length + term.length + 1); }); + + for (const provider of this.props.providers) { + if (provider.handleCompleteWord) { + provider.handleCompleteWord(term, matchedPretext); + } + } } handleKeyDown(e) { |