避免关闭uib-typeahead搜索结果

时间:2017-04-26 21:36:25

标签: angularjs bootstrap-typeahead

我已经搜索过,但仍然无法找到任何有效的解决方案避免打字输出(下拉)关闭。

我想阻止预先关闭下拉列表。

在点击搜索结果下拉列表的外部时,找不到任何匹配的事件处理程序。 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>

0 个答案:

没有答案