我已将以下代码添加到我的网页:
ng-options
每当我点击自动完成的输入时,它会通过将以下样式添加到< body>来向上移动页面。我的页面的标签(在Angular应用程序范围之外,因为它应用于子标签(SPAN)):
<md-content>
<md-autocomplete md-search-text="vm.searchText"
md-selected-item-change="vm.selectedItemChange(item)"
md-item-text="item.Name"
md-no-cache="true"
md-input-minlength="3"
md-selected-item="vm.selectedItem"
md-items="item in vm.querySearch(vm.searchText)"
placeholder="Employee or Project">
<md-item-template>
<span md-highlight-text="vm.searchText" md-highlight-flags="^i" ng-class="item.Type == 1 ? 'Employee' : 'Project'">{{item.Name}}</span>
</md-item-template>
<md-not-found>
No states matching "{{vm.searchText}}" were found.
</md-not-found>
<span flex="" md-whiteframe="-1">{{item.Name}}</span>
</md-autocomplete>
</md-content>
如何解决此问题/停止这样做?