File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
(scroll) ="settings.isLazyLoad ? checkScrollPosition($event) : null " (wheel) ="settings.stopScrollPropagation ? checkScrollPropagation($event, scroller) : null "
9
9
[class.pull-right] ="settings.pullRight " [class.dropdown-menu-right] ="settings.pullRight " [style.max-height] ="settings.maxHeight "
10
10
style ="display: block; height: auto; overflow-y: auto; " (keydown.tab) ="focusItem(1, $event) " (keydown.shift.tab) ="focusItem(-1, $event) ">
11
- < div class ="input-group search-container " *ngIf ="settings.enableSearch ">
11
+ < div class ="input-group search-container " *ngIf ="settings.enableSearch && renderFilteredOptions.length > 1 ">
12
12
< div class ="input-group-prepend ">
13
13
< span class ="input-group-text " id ="basic-addon1 ">
14
14
< i class ="fa fa-search " aria-hidden ="true "> </ i >
22
22
</ button >
23
23
</ div >
24
24
</ div >
25
- < a role ="menuitem " href ="javascript:; " tabindex ="-1 " class ="dropdown-item check-control check-control-check " *ngIf ="settings.showCheckAll && !disabledSelection "
25
+ < a role ="menuitem " href ="javascript:; " tabindex ="-1 " class ="dropdown-item check-control check-control-check " *ngIf ="settings.showCheckAll && !disabledSelection && renderFilteredOptions.length > 1 "
26
26
(click) ="checkAll() ">
27
27
< span style ="width: 16px; "> < span [ngClass] ="{'glyphicon glyphicon-ok': settings.checkedStyle !== 'fontawesome','fa fa-check': settings.checkedStyle === 'fontawesome'} "> </ span > </ span >
28
28
{{ texts.checkAll }}
29
29
</ a >
30
- < a role ="menuitem " href ="javascript:; " tabindex ="-1 " class ="dropdown-item check-control check-control-uncheck " *ngIf ="settings.showUncheckAll && !disabledSelection "
30
+ < a role ="menuitem " href ="javascript:; " tabindex ="-1 " class ="dropdown-item check-control check-control-uncheck " *ngIf ="settings.showUncheckAll && !disabledSelection && renderFilteredOptions.length > 1 "
31
31
(click) ="uncheckAll() ">
32
32
< span style ="width: 16px; "> < span [ngClass] ="{'glyphicon glyphicon-remove': settings.checkedStyle !== 'fontawesome','fa fa-times': settings.checkedStyle === 'fontawesome'} "> </ span > </ span >
33
33
{{ texts.uncheckAll }}
You can’t perform that action at this time.
0 commit comments