Angular Bootstrap Typeahead不会在移动设备/平板电脑上点击外面

时间:2017-03-23 23:33:49

标签: angularjs twitter-bootstrap

我试图隐藏在移动设备上外部的预先输入值,它不会被忽略。下面是html bootstrap typeahead。

<input type="text" name="destination"  ng-change="clear()"
                       id="destination"
                       autocomplete="off"

                       ng-model="search.destination"
                       typeahead="item.value as item.label for item in cities($viewValue)"
                       typeahead-on-select="selectTypeaheadItem($item)"
                       typeahead-min-length="{{isDeviceMobileOrTablet ? 0 : 3}}"
                       class="form-control destination"
                       ng-class="{'input-error': destinationEmptyError}"
                       tabindex="1"

                />

0 个答案:

没有答案