Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions angucomplete-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
var dd = elem[0].querySelector('.angucomplete-dropdown');
var isScrollOn = false;
var mousedownOn = null;
var unbindInitialValue;
var displaySearching;
var displayNoResults;

Expand All @@ -95,10 +94,8 @@

scope.currentIndex = scope.focusFirst ? 0 : null;
scope.searching = false;
unbindInitialValue = scope.$watch('initialValue', function(newval) {
scope.$watch('initialValue', function(newval) {
if (newval) {
// remove scope listener
unbindInitialValue();
// change input
handleInputChange(newval, true);
}
Expand Down