From 3ee8a09a926011132889dda561eb4bf364ec34ea Mon Sep 17 00:00:00 2001 From: kushalpandya Date: Fri, 2 Jun 2017 18:42:15 +0530 Subject: Prevent slash command preview removal immediately --- app/assets/javascripts/notes.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 814ff6b9871..929965de5c1 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -1389,7 +1389,6 @@ const normalizeNewlines = function(str) { // Reset cached commands list when command is applied if (hasSlashCommands) { - $notesContainer.find(`#${systemNoteUniqueId}`).remove(); $form.find('textarea.js-note-text').trigger('clear-commands-cache.atwho'); } -- cgit v1.2.1