angularjs-dropdown-multiselect icon indicating copy to clipboard operation
angularjs-dropdown-multiselect copied to clipboard

onSelectAll with Search filter

Open Harvey-Mushman opened this issue 7 years ago • 1 comments

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!

Harvey-Mushman avatar Oct 19 '17 15:10 Harvey-Mushman

$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.

MUYUSY avatar Oct 31 '17 02:10 MUYUSY