diff --git a/awx/ui/client/src/search/tagSearch.controller.js b/awx/ui/client/src/search/tagSearch.controller.js index 2506c78b2d..f8848e13a5 100644 --- a/awx/ui/client/src/search/tagSearch.controller.js +++ b/awx/ui/client/src/search/tagSearch.controller.js @@ -19,9 +19,10 @@ export default ['$scope', 'Refresh', 'tagSearchService', }; // sets the search type dropdown and hides it - $scope.setSearchType = function(type) { + $scope.setSearchType = function($event, type) { $scope.currentSearchType = type; $scope.showTypeDropdown = false; + $event.stopPropagation(); }; // if the current search type uses a list instead diff --git a/awx/ui/client/src/search/tagSearch.partial.html b/awx/ui/client/src/search/tagSearch.partial.html index a6cfa6625e..ef9d2af485 100644 --- a/awx/ui/client/src/search/tagSearch.partial.html +++ b/awx/ui/client/src/search/tagSearch.partial.html @@ -16,7 +16,7 @@
+ ng-click="setSearchType($event, type)"> {{ type.label }}