Skip to content

Commit e5fea89

Browse files
committed
Blur currentTarget instead of target
This probably fixes this issue which is still unresolved: angular/angular.js#6432 Not sure if this patch breaks something else, but we're using ui-bootstrap modals, and otherwise we wouldn't be able to focus on inputs in such modals.
1 parent ad68f11 commit e5fea89

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

angular-touch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ ngTouch.directive('ngClick', ['$parse', '$timeout', '$rootElement',
351351
event.preventDefault();
352352

353353
// Blur focused form elements
354-
event.target && event.target.blur();
354+
event.currentTarget && event.currentTarget.blur();
355355
}
356356

357357

angular-touch.min.js

-13
This file was deleted.

angular-touch.min.js.map

-8
This file was deleted.

0 commit comments

Comments
 (0)