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

Commit

Permalink
fix(autocomplete): hides cancel button when field is disabled
Browse files Browse the repository at this point in the history
Closes #1710
  • Loading branch information
Robert Messerle committed Mar 18, 2015
1 parent c6374d9 commit 936b881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/js/autocompleteDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>\
<button\
type="button"\
ng-if="searchText"\
ng-if="searchText && !isDisabled"\
ng-click="$mdAutocompleteCtrl.clear()">\
<md-icon md-svg-icon="cancel"></md-icon>\
<span class="visually-hidden">Clear</span>\
Expand Down

0 comments on commit 936b881

Please sign in to comment.