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

Commit cedf2e0

Browse files
committed
Allow the directives to be used as attributes
Needed for good IE8 support See Can't use custom element directives in IE with templates angular/angular.js#4020
1 parent 98dada8 commit cedf2e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/select.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ angular.module('ui.select', [])
2727
function($document, $timeout, uiSelectConfig) {
2828

2929
return {
30-
restrict: 'E',
30+
restrict: 'EA',
3131
templateUrl: function(tElement, tAttrs) {
3232
var theme = tAttrs.theme || uiSelectConfig.theme;
3333
return theme + '/select.tpl.html';
@@ -124,7 +124,7 @@ angular.module('ui.select', [])
124124
var HOT_KEYS = [9, 13, 27, 38, 40];
125125
return {
126126
require: '^uiSelect',
127-
restrict: 'E',
127+
restrict: 'EA',
128128
transclude: true,
129129
replace: true,
130130
templateUrl: function(tElement) {
@@ -210,7 +210,7 @@ angular.module('ui.select', [])
210210

211211
.directive('match', ['$compile', 'uiSelectConfig', function($compile, uiSelectConfig) {
212212
return {
213-
restrict: 'E',
213+
restrict: 'EA',
214214
transclude: true,
215215
replace: true,
216216
templateUrl: function(tElement) {

0 commit comments

Comments
 (0)