From 41c6951f2bf2ebfd48de5ff79ecfff734b75c2fa Mon Sep 17 00:00:00 2001 From: Robert Messerle Date: Fri, 17 Jul 2015 17:36:42 -0700 Subject: [PATCH] fix(select): interimElement will resolve its promise even when transition end event is not fired Closes #3704 --- src/core/services/interimElement/interimElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/services/interimElement/interimElement.js b/src/core/services/interimElement/interimElement.js index 21f7ec06d22..df23d4a1df3 100644 --- a/src/core/services/interimElement/interimElement.js +++ b/src/core/services/interimElement/interimElement.js @@ -412,7 +412,7 @@ function InterimElementProvider() { }, remove: function() { self.cancelTimeout(); - return removeDone = $q.when(showDone).then(function() { + return removeDone = $q.when(showDone).finally(function() { var ret = element ? options.onRemove(options.scope, element, options) : true; // Trigger onRemoving callback *before* the remove operation starts