mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
[search] Reverted previous change to ClickAwayController and introduced a custom fix to search menu. Fixes #888 (#1109)
This commit is contained in:
committed by
Pete Richards
parent
4d89de7068
commit
0274490b68
@ -34,7 +34,7 @@ define(
|
||||
* @param $scope the scope in which this controller is active
|
||||
* @param $document the document element, injected by Angular
|
||||
*/
|
||||
function ClickAwayController($document, $scope) {
|
||||
function ClickAwayController($document, $timeout) {
|
||||
var self = this;
|
||||
|
||||
this.state = false;
|
||||
@ -44,7 +44,7 @@ define(
|
||||
// `clickaway` action occurs after `toggle` if `toggle` is
|
||||
// triggered by a click/mouseup.
|
||||
this.clickaway = function () {
|
||||
$scope.$apply(function () {
|
||||
$timeout(function () {
|
||||
self.deactivate();
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user