From 6055e699ffc652208c4ab96b228a64eda1f62b9d Mon Sep 17 00:00:00 2001 From: David Cormier Date: Sun, 27 Oct 2013 16:31:37 -0400 Subject: [PATCH] Modifies angular model instead of dom element fixes #74 --- js/websockets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/websockets.js b/js/websockets.js index 0f3f620..7e1ad61 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -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();