Revert "[Autocomplete] Show warning icon if invalid option was typed"
This reverts commit 307320b3ff.
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
type="text"
|
||||
ng-model="ngModel[field]"
|
||||
ng-change="filterOptions(ngModel[field])"
|
||||
ng-init="filterOptions(ngModel[field])"
|
||||
ng-click="inputClicked()"
|
||||
ng-keydown="keyDown($event)"/>
|
||||
<span class="icon-arrow-down"
|
||||
@@ -44,7 +43,4 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<span class="icon-x autocompleteWarning"
|
||||
ng-show="invalidOption">
|
||||
</span>
|
||||
</div>
|
||||
@@ -111,7 +111,6 @@ define(
|
||||
name: option
|
||||
};
|
||||
});
|
||||
$scope.invalidOption = $scope.filteredOptions.length === 0;
|
||||
};
|
||||
|
||||
$scope.inputClicked = function () {
|
||||
|
||||
@@ -53,11 +53,6 @@ define([
|
||||
expect(mockScope.filteredOptions).toEqual(filteredOptions);
|
||||
});
|
||||
|
||||
it("checks if invalid option was typed", function () {
|
||||
mockScope.filterOptions('openmct');
|
||||
expect(mockScope.invalidOption).toEqual(true);
|
||||
});
|
||||
|
||||
it("fills input with given string", function () {
|
||||
var str = "UTC";
|
||||
mockScope.fillInput(str);
|
||||
|
||||
Reference in New Issue
Block a user