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

Commit

Permalink
Merge pull request #735 from cmlenz/fix-sizing-single
Browse files Browse the repository at this point in the history
Fix for sizing bug introduced by #718
  • Loading branch information
dimirc committed Mar 9, 2015
2 parents 4d9e63d + 1023522 commit 27c565e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/uiSelectDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ uis.directive('uiSelect',
attrs.$observe('disabled', function() {
// No need to use $eval() (thanks to ng-disabled) since we already get a boolean instead of a string
$select.disabled = attrs.disabled !== undefined ? attrs.disabled : false;
// As the search input field may now become visible, it may be necessary to recompute its size
$select.sizeSearchInput();
if ($select.multiple) {
// As the search input field may now become visible, it may be necessary to recompute its size
$select.sizeSearchInput();
}
});

attrs.$observe('resetSearchInput', function() {
Expand Down

0 comments on commit 27c565e

Please sign in to comment.