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

Commit a41a7fc

Browse files
robinComauser378230
authored andcommittedJul 5, 2016
fix(uiSelectMultiple): $select.refreshItems is not a function
Resolves exception: TypeError: $select.refreshItems is not a function at uis.directive.$timeout.controller.ctrl.refreshComponent when the select is multiple (v 18.0 & master)
1 parent 32b7924 commit a41a7fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎src/uiSelectMultipleDirective.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
2626
//Remove already selected items
2727
//e.g. When user clicks on a selection, the selected array changes and
2828
//the dropdown should remove that item
29-
$select.refreshItems();
30-
$select.sizeSearchInput();
29+
if($select.refreshItems){
30+
$select.refreshItems();
31+
}
32+
if($select.sizeSearchInput){
33+
$select.sizeSearchInput();
34+
}
3135
};
3236

3337
// Remove item from multiple select

0 commit comments

Comments
 (0)
This repository has been archived.