We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d9e63d + 1023522 commit 27c565eCopy full SHA for 27c565e
src/uiSelectDirective.js
@@ -211,8 +211,10 @@ uis.directive('uiSelect',
211
attrs.$observe('disabled', function() {
212
// No need to use $eval() (thanks to ng-disabled) since we already get a boolean instead of a string
213
$select.disabled = attrs.disabled !== undefined ? attrs.disabled : false;
214
- // As the search input field may now become visible, it may be necessary to recompute its size
215
- $select.sizeSearchInput();
+ if ($select.multiple) {
+ // As the search input field may now become visible, it may be necessary to recompute its size
216
+ $select.sizeSearchInput();
217
+ }
218
});
219
220
attrs.$observe('resetSearchInput', function() {
0 commit comments