From 51d663a0d9a05ea7b5e444b2d353c8695886b5c0 Mon Sep 17 00:00:00 2001 From: tangfang <2002323stf@sina.com.cn> Date: Thu, 17 Mar 2016 17:33:51 +0800 Subject: [PATCH 1/2] fix-#1499-error fix-#1499-error --- src/uiSelectChoicesDirective.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uiSelectChoicesDirective.js b/src/uiSelectChoicesDirective.js index 57d4ae0d9..b929373ff 100644 --- a/src/uiSelectChoicesDirective.js +++ b/src/uiSelectChoicesDirective.js @@ -58,7 +58,9 @@ uis.directive('uiSelectChoices', rowsInner.attr('ng-mouseenter', '$select.setActiveItem('+$select.parserResult.itemName +')') .attr('ng-click', '$select.select(' + $select.parserResult.itemName + ',$select.skipFocusser,$event)'); } - + + element.removeAttr('ui-select-choices');//fix-#1499-error + $compile(element, transcludeFn)(scope); //Passing current transcludeFn to be able to append elements correctly from uisTranscludeAppend scope.$watch('$select.search', function(newValue) { From a46892afa0cc4bc1b1358d0dc4394f6a7cdd2393 Mon Sep 17 00:00:00 2001 From: tangfang <2002323stf@sina.com.cn> Date: Mon, 28 Mar 2016 16:07:03 +0800 Subject: [PATCH 2/2] clear up comment //fix-#1499-error. clear up comment //fix-#1499-error. --- src/uiSelectChoicesDirective.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uiSelectChoicesDirective.js b/src/uiSelectChoicesDirective.js index b929373ff..43d8ed0e6 100644 --- a/src/uiSelectChoicesDirective.js +++ b/src/uiSelectChoicesDirective.js @@ -59,7 +59,7 @@ uis.directive('uiSelectChoices', .attr('ng-click', '$select.select(' + $select.parserResult.itemName + ',$select.skipFocusser,$event)'); } - element.removeAttr('ui-select-choices');//fix-#1499-error + element.removeAttr('ui-select-choices'); $compile(element, transcludeFn)(scope); //Passing current transcludeFn to be able to append elements correctly from uisTranscludeAppend