angularjs-dropdown-multiselect
angularjs-dropdown-multiselect copied to clipboard
onSelectAll with Search filter
It seems to me the the "selected-model" should display the selected options when onSelectAll event fires. However, one can assume the entire option list is selected.... except when Search filters the option list. In this case, onSelectAll needs to expose the correct items checked.
At present, the onSelectAll event does not expose the actual selected options. It always reads zero. This is a bug in my opinion. When this event fires the selected-model property should show the selected items.
Using the undocumented onClose event is a work around but not a fix.
Thanks for your considerations - oh BTW, this directive is AWESOME!
$scope.oldOptions = $scope.options; $scope.$watch('input.searchFilter', function(newValue) { $scope.options=$filter('filter'($scope.oldOptions,$scope.getFilter($scope.input.searchFilter)); })
This may fix this problem.