From c944307778dd78f18bf19e9287d532f57c7ce733 Mon Sep 17 00:00:00 2001 From: Bogdan Alexe Date: Tue, 31 May 2016 14:48:06 +0300 Subject: [PATCH] fix(uiSelectNoChoice): make compatible with Angular 1.5 ...and non-cached templates. Same change introduced in 0e85670ed377148ac3a7d5ef6ff5ed7c46446858 Closes #1609 --- src/uiSelectNoChoiceDirective.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uiSelectNoChoiceDirective.js b/src/uiSelectNoChoiceDirective.js index a6f47ec7e..0ab34f1cf 100644 --- a/src/uiSelectNoChoiceDirective.js +++ b/src/uiSelectNoChoiceDirective.js @@ -6,9 +6,12 @@ uis.directive('uiSelectNoChoice', replace: true, transclude: true, templateUrl: function (tElement) { + // Needed so the uiSelect can detect the transcluded content + tElement.addClass('ui-select-no-choice'); + // Gets theme attribute from parent (ui-select) var theme = tElement.parent().attr('theme') || uiSelectConfig.theme; return theme + '/no-choice.tpl.html'; } }; - }]); \ No newline at end of file + }]);