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

Commit 7c8b3a0

Browse files
author
Noah Feldman
committed
fix(bootstrap): hide dropdown if there are no items to show
Closes #1588
1 parent 9a40b6f commit 7c8b3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/choices.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu"
22
role="listbox"
3-
ng-show="$select.open">
3+
ng-show="$select.open && $select.items.length > 0">
44
<li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}" >
55
<div class="divider" ng-show="$select.isGrouped && $index > 0"></div>
66
<div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div>

0 commit comments

Comments
 (0)