我已经搜索过,但仍然无法找到任何有效的解决方案避免打字输出(下拉)关闭。
我想阻止预先关闭下拉列表。
在点击搜索结果下拉列表的外部时,找不到任何匹配的事件处理程序。 doc:https://angular-ui.github.io/bootstrap/#!#typeahead
版本:ui-bootstrap-tpls.js,1.3.3
<div >
<input type="button" class="btn-primary" value="Filter" >
<input type="text"
autocomplete="off" class="search-box form-control" name="top-search" ng-model="searchController.searchQuery" uib-typeahead="element as element.Name for name in searchController.getSearchResult($viewValue)"
typeahead-template-url="search-result.html" typeahead-min-length="3" typeahead-on-select="searchController.onSelect($item)"
typeahead-wait-ms="250" />
</div>