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

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();