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

Commit

Permalink
fix(uiSelectMultiple): $select.refreshItems is not a function
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
robinComa authored and user378230 committed Jul 5, 2016
1 parent 32b7924 commit a41a7fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/uiSelectMultipleDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ uis.directive('uiSelectMultiple', ['uiSelectMinErr','$timeout', function(uiSelec
//Remove already selected items
//e.g. When user clicks on a selection, the selected array changes and
//the dropdown should remove that item
$select.refreshItems();
$select.sizeSearchInput();
if($select.refreshItems){
$select.refreshItems();
}
if($select.sizeSearchInput){
$select.sizeSearchInput();
}
};

// Remove item from multiple select
Expand Down

0 comments on commit a41a7fc

Please sign in to comment.