Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 0e9f998

Browse files
seankennypkozlowski-opensource
authored andcommitted
fix(typeahead): support IE8
1 parent 0d810ac commit 0e9f998

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/typeahead/typeahead.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap
6868
var hasFocus;
6969

7070
//pop-up element used to display matches
71-
var popUpEl = angular.element('<typeahead-popup></typeahead-popup>');
71+
var popUpEl = angular.element('<div typeahead-popup></div>');
7272
popUpEl.attr({
7373
matches: 'matches',
7474
active: 'activeIdx',
@@ -283,7 +283,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap
283283

284284
.directive('typeaheadPopup', function () {
285285
return {
286-
restrict:'E',
286+
restrict:'EA',
287287
scope:{
288288
matches:'=',
289289
query:'=',
@@ -318,7 +318,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap
318318

319319
.directive('typeaheadMatch', ['$http', '$templateCache', '$compile', '$parse', function ($http, $templateCache, $compile, $parse) {
320320
return {
321-
restrict:'E',
321+
restrict:'EA',
322322
scope:{
323323
index:'=',
324324
match:'=',
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<ul class="typeahead 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)">
3-
<typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></typeahead-match>
3+
<div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>
44
</li>
55
</ul>

0 commit comments

Comments
 (0)