diff --git a/src/uiSelectDirective.js b/src/uiSelectDirective.js index 8bd5369bf..00fe1aa28 100644 --- a/src/uiSelectDirective.js +++ b/src/uiSelectDirective.js @@ -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() {