Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit b6d9d54

Browse files
committed
Merge pull request #1631 from bogdanalexe90/patch-2
fix: search input width resizing
2 parents 8c4d1bf + 5c8cf86 commit b6d9d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uiSelectController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ uis.controller('uiSelectCtrl',
476476
ctrl.searchInput.css('width', '10px');
477477
$timeout(function() { //Give tags time to render correctly
478478
if (sizeWatch === null && !updateIfVisible(calculateContainerWidth())) {
479-
sizeWatch = $scope.$watch(angular.noop, function() {
479+
sizeWatch = $scope.$watch(function() {
480480
if (!updaterScheduled) {
481481
updaterScheduled = true;
482482
$scope.$$postDigest(function() {
@@ -487,7 +487,7 @@ uis.controller('uiSelectCtrl',
487487
}
488488
});
489489
}
490-
});
490+
}, angular.noop);
491491
}
492492
});
493493
};

0 commit comments

Comments
 (0)