Skip to content

Commit 210351c

Browse files
committed
Pull Request #43
1 parent a7d62cf commit 210351c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jquery.mentionsInput.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@
160160
mentionText = mentionText.replace(/ {2}/g, '  '); //Replace the 2 preceding token to  
161161

162162
elmInputBox.data('messageText', syntaxMessage); //Save the messageText to elmInputBox
163+
elmInputBox.trigger('updated');
163164
elmMentionsOverlay.find('div').html(mentionText); //Insert into a div of the elmMentionsOverlay the mention text
164165
}
165166

@@ -208,6 +209,7 @@
208209
// Mentions and syntax message
209210
var updatedMessageText = start + mention.value + ' ' + end;
210211
elmInputBox.val(updatedMessageText); //Set the value to the txt area
212+
elmInputBox.trigger('mention');
211213
updateValues();
212214

213215
// Set correct focus and selection

0 commit comments

Comments
 (0)