summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/gfm_auto_complete.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-07-07 18:08:39 +0100
committerPhil Hughes <me@iamphill.com>2017-07-07 18:08:39 +0100
commit932b94f911394543a0377d712b2b28da827e4aad (patch)
tree96d4aa00b0300b605a512b7febc50010378cb2db /app/assets/javascripts/gfm_auto_complete.js
parent1dab640357fa1ba8992757499e4167fcd4ce6276 (diff)
downloadgitlab-ce-932b94f911394543a0377d712b2b28da827e4aad.tar.gz
Fixed GFM references not being included when update issue inlineissue-description-gfm
Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/2878
Diffstat (limited to 'app/assets/javascripts/gfm_auto_complete.js')
-rw-r--r--app/assets/javascripts/gfm_auto_complete.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/gfm_auto_complete.js b/app/assets/javascripts/gfm_auto_complete.js
index 2c56b718212..6cb9cfe1382 100644
--- a/app/assets/javascripts/gfm_auto_complete.js
+++ b/app/assets/javascripts/gfm_auto_complete.js
@@ -30,6 +30,7 @@ class GfmAutoComplete {
this.input.each((i, input) => {
const $input = $(input);
$input.off('focus.setupAtWho').on('focus.setupAtWho', this.setupAtWho.bind(this, $input));
+ $input.on('change.atwho', () => input.dispatchEvent(new Event('input')));
// This triggers at.js again
// Needed for quick actions with suffixes (ex: /label ~)
$input.on('inserted-commands.atwho', $input.trigger.bind($input, 'keyup'));