<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.3/angular-material.min.css">
<!-- Included here because the External Resources panel is annoying to use -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular-messages.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.3/angular-material.min.js"></script>
<div ng-app="MdAutocompleteBugApp">
<div ng-controller="MdAutocompleteBugController as vm">
<md-content class="md-padding">
<strong>To reproduce:</strong>
<ul>
<li>Type "Arizona" into the search box</li>
<li>Before the list is populated with "AZ - Arizona", "No matches found" will briefly flash</li>
</ul>
</md-content>
<md-toolbar class="md-padding">
<md-autocomplete
md-selected-item="selectedItem"
md-search-text="searchText"
md-items="item in vm.getMatches(searchText)"
md-item-text="item.name"
placeholder="Search states"
md-no-cache="true">
<md-item-template>
<span>{{item.abbreviation}} - </span>
<span md-highlight-text="searchText" md-highlight-flags="^i">{{item.name}}</span>
</md-item-template>
<md-not-found>
No matches found.
</md-not-found>
</md-autocomplete>
</md-toolbar>
</div>
</div>