From e9675644e55d431308782ef2d3baed716fe59230 Mon Sep 17 00:00:00 2001 From: Christopher Lewis Date: Thu, 17 Nov 2016 12:02:55 +0100 Subject: [PATCH 1/2] (fix) on iOS, enable input to focus when tapping on host element --- src/tags-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tags-input.js b/src/tags-input.js index 4afc66d1..5dd2d096 100644 --- a/src/tags-input.js +++ b/src/tags-input.js @@ -267,7 +267,7 @@ tagsInput.directive('tagsInput', function($timeout, $document, $window, $q, tags }; focusInput = function() { - $timeout(function() { input[0].focus(); }); + input[0].focus(); }; ngModelCtrl.$isEmpty = function(value) { From 77e85202991e8b4e165b8295204c4e90fb6cb9e4 Mon Sep 17 00:00:00 2001 From: Christopher Lewis Date: Thu, 17 Nov 2016 12:02:55 +0100 Subject: [PATCH 2/2] (fix) on iOS, enable input to focus when tapping on host element Closes #740. --- src/tags-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tags-input.js b/src/tags-input.js index 4afc66d1..5dd2d096 100644 --- a/src/tags-input.js +++ b/src/tags-input.js @@ -267,7 +267,7 @@ tagsInput.directive('tagsInput', function($timeout, $document, $window, $q, tags }; focusInput = function() { - $timeout(function() { input[0].focus(); }); + input[0].focus(); }; ngModelCtrl.$isEmpty = function(value) {