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

Commit c944307

Browse files
Bogdan Alexeuser378230
Bogdan Alexe
authored andcommitted
fix(uiSelectNoChoice): make compatible with Angular 1.5
...and non-cached templates. Same change introduced in 0e85670 Closes #1609
1 parent 9d29307 commit c944307

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/uiSelectNoChoiceDirective.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ uis.directive('uiSelectNoChoice',
66
replace: true,
77
transclude: true,
88
templateUrl: function (tElement) {
9+
// Needed so the uiSelect can detect the transcluded content
10+
tElement.addClass('ui-select-no-choice');
11+
912
// Gets theme attribute from parent (ui-select)
1013
var theme = tElement.parent().attr('theme') || uiSelectConfig.theme;
1114
return theme + '/no-choice.tpl.html';
1215
}
1316
};
14-
}]);
17+
}]);

0 commit comments

Comments
 (0)