Typeahead,响应表无法正常工作

时间:2015-04-13 17:49:09

标签: angular-ui-bootstrap

是否有人能够在响应式表格中使用预先输入类型小部件?会发生什么是表的溢出会切断下拉列表。

任何想法或帮助都会很棒!

2 个答案:

答案 0 :(得分:1)

我能够弄清楚。查看源代码,您可以设置一个标志,将下拉菜单附加到body元素。

答案 1 :(得分:0)

我在我的网站33hotels.com上使用它,效果很好。以下是我在代码中的外观:

<!-- ======= Typeahead directive from Angular UI ======= -->
<input  id="input-region"
        type="search"
        class="form-control"
        ng-model="lc.storage.currentRegion"
        typeahead="region as region.nn for region in lc.regionsCompletion($viewValue) | filter:{n:$viewValue}"
        typeahead-template-url="typeahead.tpl.html"
        typeahead-wait-ms="0"
        typeahead-loading="loadingRegions"
        typeahead-on-select="lc.updateRegion()"
        placeholder="Enter your region"
        ng-blur="lc.onBlur()"
        focus-on="locationFocus"
        autofocus/>

我有一个自定义Bootstrap,禁用大多数声明。您可以在Chrome检查器中使用我的网站,看看有哪些声明。