Merge pull request #421 from glowing-bear/double-apply
Prevent triggering ng-focus on input during completion
This commit is contained in:
commit
a9f06ee46b
|
@ -1428,8 +1428,10 @@ weechat.directive('inputBar', function() {
|
||||||
$scope.command = nickComp.text;
|
$scope.command = nickComp.text;
|
||||||
|
|
||||||
// update current caret position
|
// update current caret position
|
||||||
inputNode.focus();
|
setTimeout(function() {
|
||||||
inputNode.setSelectionRange(nickComp.caretPos, nickComp.caretPos);
|
inputNode.focus();
|
||||||
|
inputNode.setSelectionRange(nickComp.caretPos, nickComp.caretPos);
|
||||||
|
}, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue