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

Made option "closeOnSelect" work. #23

Merged
merged 2 commits into from
Apr 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/angularjs-dropdown-multiselect.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/angularjs-dropdown-multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
clearObject($scope.selectedModel);
angular.extend($scope.selectedModel, finalObj);
$scope.externalEvents.onItemSelect(finalObj);
if ($scope.settings.closeOnSelect) $scope.open = false;

return;
}
Expand All @@ -276,6 +277,7 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
$scope.selectedModel.push(finalObj);
$scope.externalEvents.onItemSelect(finalObj);
}
if ($scope.settings.closeOnSelect) $scope.open = false;
};

$scope.isChecked = function (id) {
Expand Down