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

Commit

Permalink
Merge pull request #1489 from kedrzu/master
Browse files Browse the repository at this point in the history
fix(choices.tpl.html) properly hide and show dropdown

Fixes dropdown being shown even when it is not open. Updated ng-show `$select.open` instead of `$select.items`.
  • Loading branch information
aaronroberson committed Mar 15, 2016
2 parents 96632ff + e65995f commit f5b76cf
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.items.length > 0">
ng-show="$select.open">
<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 f5b76cf

Please sign in to comment.