我试图隐藏在移动设备上外部的预先输入值,它不会被忽略。下面是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"
/>