Modifies angular model instead of dom element

fixes #74
This commit is contained in:
David Cormier 2013-10-27 16:31:37 -04:00
parent 84cc93fbb0
commit 6055e699ff
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
$rootScope.iterCandidate = nickComp.iterCandidate;
// update current input
inputNode.value = nickComp.text;
$scope.command = nickComp.text;
// update current caret position
inputNode.focus();