Skip to content

Commit

Permalink
Merge pull request #469 from giannidhooge/search-patch
Browse files Browse the repository at this point in the history
Show search-container when filter has a value
  • Loading branch information
softsimon authored Jan 18, 2021
2 parents 71c33ed + 58f6a20 commit a0ea565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ngx-bootstrap-multiselect.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(scroll)="settings.isLazyLoad ? checkScrollPosition($event) : null" (wheel)="settings.stopScrollPropagation ? checkScrollPropagation($event, scroller) : null"
[class.pull-right]="settings.pullRight" [class.dropdown-menu-right]="settings.pullRight" [style.max-height]="settings.maxHeight"
style="display: block; height: auto; overflow-y: auto;" (keydown.tab)="focusItem(1, $event)" (keydown.shift.tab)="focusItem(-1, $event)">
<div class="input-group search-container" *ngIf="settings.enableSearch && renderFilteredOptions.length > 1">
<div class="input-group search-container" *ngIf="settings.enableSearch && (renderFilteredOptions.length > 1 || filterControl.value.length > 0)">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">
<i class="fa fa-search" aria-hidden="true"></i>
Expand Down

0 comments on commit a0ea565

Please sign in to comment.