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

Commit 3fd1e2d

Browse files
committed
Merge pull request #1589 from nfeldman-at-onshape/master
fix(bootstrap): hide dropdown if there are no items to show
2 parents 9a40b6f + 7c8b3a0 commit 3fd1e2d

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)