Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 2602e7b

Browse files
achuinardkara
authored andcommitted
fix(autocomplete): allow clear button even if directive is disabled (#10603)
1 parent 281504f commit 2602e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/autocomplete/js/autocompleteDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ function MdAutocomplete ($$mdSvgRegistry) {
407407
'type="button" ' +
408408
'aria-label="Clear Input" ' +
409409
'tabindex="-1" ' +
410-
'ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText && !$mdAutocompleteCtrl.isDisabled" ' +
410+
'ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ' +
411411
'ng-click="$mdAutocompleteCtrl.clear($event)">' +
412412
'<md-icon md-svg-src="' + $$mdSvgRegistry.mdClose + '"></md-icon>' +
413413
'</button>';

0 commit comments

Comments
 (0)