我正在使用ngbDropdown并将ng-bootstrap从版本3升级到4.1.3,现在[autoClose] =“'outside'”正在关闭,无论我按下拉列表的内部还是外部:如果我将其设置为false,它将按预期工作。
<span *ngIf="!isAllItemsDisplayed"
ngbDropdown
#dropdown="ngbDropdown"
[autoClose]="'outside'"
[placement]="['right-bottom', 'right', 'right-top']">
<i ngbDropdownToggle
class="icon icon-dots dropright drill-drop"
[class.inactive]="isAnyActionSelected">
</i>
<div ngbDropdownMenu *ngIf="dropdown.isOpen()">
<p class="drillmenuheader">{{unit.name | textEllipsis: 12 }}</p>
<ov-drilldown-screen-item *ngFor="let drilldown of drilldowns"
[screen]="drilldown"
[showLabel]="true"
(navigate)="navigate($event)">
</ov-drilldown-screen-item>
<div class="dropdown-divider"*ngIf="isCommandActionsVisible"></div>
<ov-drilldown-action-item *ngFor="let action of actions"
[action]="action"
[showLabel]="true"
[unitId]="unit ? unit.id : 0"
[unitName]="unit ? unit.name : ''">
</ov-drilldown-action-item>
</div>
Angular版本7.3.1 ng-bootstrap版本4.1.3
有人对此问题有解决方案吗?
非常感谢:-)