Skip to content

Commit 01e4e47

Browse files
feat(typeahead): update to Bootstrap 3
1 parent ae7d531 commit 01e4e47

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/typeahead/docs/demo.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class='container-fluid' ng-controller="TypeaheadCtrl">
22
<pre>Model: {{selected| json}}</pre>
3-
<input type="text" ng-model="selected" typeahead="state for state in states | filter:$viewValue | limitTo:8">
3+
<input type="text" ng-model="selected" typeahead="state for state in states | filter:$viewValue | limitTo:8" class="form-control">
44
</div>

src/typeahead/test/typeahead.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('typeahead tests', function () {
4747
};
4848

4949
var findDropDown = function (element) {
50-
return element.find('ul.typeahead');
50+
return element.find('ul');
5151
};
5252

5353
var findMatches = function (element) {

template/typeahead/typeahead-popup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ul class="typeahead dropdown-menu" ng-style="{display: isOpen()&&'block' || 'none', top: position.top+'px', left: position.left+'px'}">
1+
<ul class="dropdown-menu" ng-style="{display: isOpen()&&'block' || 'none', top: position.top+'px', left: position.left+'px'}">
22
<li ng-repeat="match in matches" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)">
33
<typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></typeahead-match>
44
</li>

0 commit comments

Comments
 (0)