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

Commit f76052e

Browse files
committed
Explicitly trigger an update of the search input size when the disabled state changes.
1 parent 530c41a commit f76052e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/uiSelectDirective.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ uis.directive('uiSelect',
212212
attrs.$observe('disabled', function() {
213213
// No need to use $eval() (thanks to ng-disabled) since we already get a boolean instead of a string
214214
$select.disabled = attrs.disabled !== undefined ? attrs.disabled : false;
215+
// As the search input field may now become visible, it may be necessary to recompute its size
216+
$select.sizeSearchInput();
215217
});
216218

217219
attrs.$observe('resetSearchInput', function() {

0 commit comments

Comments
 (0)