Skip to content

Commit

Permalink
fix(bootstrap): hide dropdown if there are no items to show
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Feldman committed May 2, 2016
1 parent 9a40b6f commit 7c8b3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/choices.tpl.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu"
role="listbox"
ng-show="$select.open">
ng-show="$select.open && $select.items.length > 0">
<li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}" >
<div class="divider" ng-show="$select.isGrouped && $index > 0"></div>
<div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div>
Expand Down

0 comments on commit 7c8b3a0

Please sign in to comment.