mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 14:18:16 +00:00
[Search] Clear icon working
Clicking on the clear icon now clears the input text in the search bar.
This commit is contained in:
@ -118,6 +118,14 @@ define(function () {
|
||||
*/
|
||||
hasInput: function () {
|
||||
return !($scope.ngModel.input === "" || $scope.ngModel.input === undefined);
|
||||
},
|
||||
|
||||
/**
|
||||
* Clears the input text.
|
||||
*/
|
||||
clear: function () {
|
||||
$scope.ngModel.input = '';
|
||||
$scope.ngModel.search = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user