diff --git a/awx/ui/client/src/search/tagSearch.controller.js b/awx/ui/client/src/search/tagSearch.controller.js index 815761393e..2a1b8e3311 100644 --- a/awx/ui/client/src/search/tagSearch.controller.js +++ b/awx/ui/client/src/search/tagSearch.controller.js @@ -20,7 +20,9 @@ export default ['$scope', 'Refresh', 'tagSearchService', if ($scope.showTypeDropdown) { $("body").append("
"); $(".TagSearch-clickToClose").on("click", function() { - $scope.showTypeDropdown = false; + $scope.$apply(function() { + $scope.showTypeDropdown = false; + }); $(".TagSearch-clickToClose").remove(); }); } @@ -44,7 +46,9 @@ export default ['$scope', 'Refresh', 'tagSearchService', if ($scope.showCurrentSearchDropdown) { $("body").append(""); $(".TagSearch-clickToClose").on("click", function() { - $scope.showCurrentSearchDropdown = false; + $scope.$apply(function() { + $scope.showCurrentSearchDropdown = false; + }); $(".TagSearch-clickToClose").remove(); }); }