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

Commit

Permalink
Fix: Search box not shown to search when data is an empty array with …
Browse files Browse the repository at this point in the history
…select2 theme
  • Loading branch information
Sparksx committed Jan 25, 2018
1 parent d1ce1cf commit ca03f0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/uiSelectDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,11 @@ uis.directive('uiSelect',
if ($select.search === '' && !opened) {
dropdown[0].style.opacity = 0;
opened = true;
}
}

var isSelect2Theme = angular.element(element).hasClass("select2");
if (!uisOffset(dropdown).height && $select.$animate && $select.$animate.on && $select.$animate.enabled(dropdown) && !isSelect2Theme) {

if (!uisOffset(dropdown).height && $select.$animate && $select.$animate.on && $select.$animate.enabled(dropdown)) {
var needsCalculated = true;

$select.$animate.on('enter', dropdown, function (elem, phase) {
Expand Down

0 comments on commit ca03f0b

Please sign in to comment.