From 0e9f9980ed7cf3c8f5fe6871ad83e8f3104460b7 Mon Sep 17 00:00:00 2001 From: Sean Kenny Date: Sat, 16 Nov 2013 08:18:47 +0000 Subject: [PATCH] fix(typeahead): support IE8 --- src/typeahead/typeahead.js | 6 +++--- template/typeahead/typeahead-popup.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/typeahead/typeahead.js b/src/typeahead/typeahead.js index d886886165..b1eecff95f 100644 --- a/src/typeahead/typeahead.js +++ b/src/typeahead/typeahead.js @@ -68,7 +68,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap var hasFocus; //pop-up element used to display matches - var popUpEl = angular.element(''); + var popUpEl = angular.element('
'); popUpEl.attr({ matches: 'matches', active: 'activeIdx', @@ -283,7 +283,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap .directive('typeaheadPopup', function () { return { - restrict:'E', + restrict:'EA', scope:{ matches:'=', query:'=', @@ -318,7 +318,7 @@ angular.module('ui.bootstrap.typeahead', ['ui.bootstrap.position', 'ui.bootstrap .directive('typeaheadMatch', ['$http', '$templateCache', '$compile', '$parse', function ($http, $templateCache, $compile, $parse) { return { - restrict:'E', + restrict:'EA', scope:{ index:'=', match:'=', diff --git a/template/typeahead/typeahead-popup.html b/template/typeahead/typeahead-popup.html index 69707cefe5..32ec197185 100644 --- a/template/typeahead/typeahead-popup.html +++ b/template/typeahead/typeahead-popup.html @@ -1,5 +1,5 @@ \ No newline at end of file