Skip to content

Commit

Permalink
Issue #8: Mentioning at the end of the text
Browse files Browse the repository at this point in the history
Updated the ngModel after the change
  • Loading branch information
Jeff Collins committed Aug 14, 2014
1 parent c273b73 commit 9e7e55e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dist/mentio.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ angular.module('mentio', [])
mentioUtil.replaceTriggerText($scope.targetElement, $scope.targetElementPath,
$scope.targetElementSelectedOffset, $scope.triggerCharSet, text);
$scope.setTriggerText('');
angular.element($scope.targetElement).triggerHandler('change');
if ($scope.isContentEditable()) {
$scope.contentEditableMenuPasted = true;
var timer = $timeout(function() {
Expand Down
Loading

0 comments on commit 9e7e55e

Please sign in to comment.