Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
fix(bootstrap): hide clear button if disabled
Browse files Browse the repository at this point in the history
hide clear button if ui-select is disabled

Closes #1388 and #980
  • Loading branch information
Raytray authored and user378230 committed Apr 7, 2016
1 parent d7d26ca commit fe0c0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/match.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span>
<span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{'ui-select-allow-clear': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span>
<i class="caret pull-right" ng-click="$select.toggle($event)"></i>
<a ng-show="$select.allowClear && !$select.isEmpty()" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px"
<a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px"
ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right">
<i class="glyphicon glyphicon-remove" aria-hidden="true"></i>
</a>
Expand Down

0 comments on commit fe0c0c1

Please sign in to comment.