From 524b52994c6e745f2d1050b7be5c99dec4d2b745 Mon Sep 17 00:00:00 2001 From: kba Date: Wed, 26 Oct 2016 14:33:43 +0200 Subject: [PATCH 1/2] Fixed issue #1831 --- src/uiSelectSingleDirective.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uiSelectSingleDirective.js b/src/uiSelectSingleDirective.js index 73abedd23..caa4ae206 100644 --- a/src/uiSelectSingleDirective.js +++ b/src/uiSelectSingleDirective.js @@ -1,4 +1,4 @@ -uis.directive('uiSelectSingle', ['$timeout','$compile', function($timeout, $compile) { +uis.directive('uiSelectSingle', ['$timeout','$compile','$interpolateProvider', function($timeout, $compile, $interpolateProvider) { return { restrict: 'EA', require: ['^uiSelect', '^ngModel'], @@ -65,7 +65,7 @@ uis.directive('uiSelectSingle', ['$timeout','$compile', function($timeout, $comp }); //Idea from: https://github.com/ivaynberg/select2/blob/79b5bf6db918d7560bdd959109b7bcfb47edaf43/select2.js#L1954 - var focusser = angular.element(""); + var focusser = angular.element(""); $compile(focusser)(scope); $select.focusser = focusser; From 794fa9ec30bc6e026b5304a4b1a2895f5c92e65a Mon Sep 17 00:00:00 2001 From: kba Date: Wed, 26 Oct 2016 15:15:27 +0200 Subject: [PATCH 2/2] Fixed issue #1831 --- src/uiSelectSingleDirective.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uiSelectSingleDirective.js b/src/uiSelectSingleDirective.js index caa4ae206..10fb141d5 100644 --- a/src/uiSelectSingleDirective.js +++ b/src/uiSelectSingleDirective.js @@ -1,4 +1,4 @@ -uis.directive('uiSelectSingle', ['$timeout','$compile','$interpolateProvider', function($timeout, $compile, $interpolateProvider) { +uis.directive('uiSelectSingle', ['$timeout','$compile','$interpolate', function($timeout, $compile, $interpolate) { return { restrict: 'EA', require: ['^uiSelect', '^ngModel'], @@ -65,7 +65,7 @@ uis.directive('uiSelectSingle', ['$timeout','$compile','$interpolateProvider', f }); //Idea from: https://github.com/ivaynberg/select2/blob/79b5bf6db918d7560bdd959109b7bcfb47edaf43/select2.js#L1954 - var focusser = angular.element(""); + var focusser = angular.element(""); $compile(focusser)(scope); $select.focusser = focusser;