Javascript 当存在多个具有typeahead的字段时,如何关闭角度引导typeahead?
我正在使用角度引导式打字机。我需要在多个输入字段上预先输入。是否有一些选择我可以使用,我错过了?或者我需要添加一些黑客来实现这一点 这两个字段如下所示:Javascript 当存在多个具有typeahead的字段时,如何关闭角度引导typeahead?,javascript,angularjs,typeahead,angular-bootstrap,angular-ui-typeahead,Javascript,Angularjs,Typeahead,Angular Bootstrap,Angular Ui Typeahead,我正在使用角度引导式打字机。我需要在多个输入字段上预先输入。是否有一些选择我可以使用,我错过了?或者我需要添加一些黑客来实现这一点 这两个字段如下所示: 部门 评级 有相同的错误。这只在我的情况下出现在Firefox上。这与promise resolve有关,如果使用静态数据,则下拉列表将正确关闭。 <label> Sector <span class="restrict-dropdown-menu-small">
部门
评级
有相同的错误。这只在我的情况下出现在Firefox上。这与promise resolve有关,如果使用静态数据,则下拉列表将正确关闭。
<label>
Sector
<span class="restrict-dropdown-menu-small">
<input type="text" class="form-control length-md"
ng-model="customBenchmark.sector"
typeahead="sector for sector in customBenchmarkOptions.sectors | filter:$viewValue:$emptyOrMatch | orderBy:'toString()'"
typeahead-focus
typeahead-select-on-blur="true"/>
</span>
</label>
<label>
Rating
<span class="restrict-dropdown-menu-small">
<input type="text" class="form-control length-md"
ng-model="customBenchmark.rating"
typeahead="rating for rating in customBenchmarkOptions.ratings | filter:$viewValue:$emptyOrMatch | orderBy:'toString()'"
typeahead-focus
typeahead-select-on-blur="true"/>
</span>
</label>