我在棱角项目中使用ng-bootstrap 1.0.1
。在chrome (latest version).
中工作正常,但在firefox (latest version)
中,单击下拉按钮时抛出错误too much recursion
。
<div class="row">
<div class="col">
<div ngbDropdown class="d-inline-block">
<button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>Toggle dropdown</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button class="dropdown-item">Action - 1</button>
<button class="dropdown-item">Another Action</button>
<button class="dropdown-item">Something else is here</button>
</div>
</div>
</div>
将ng-bootstrap软件包1.0.0升级到2.0.0后,出现以下错误消息,
错误: