Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Fix TypeError: tapElement.blur is not a function #13272

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ngTouch/directive/ngClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ ngTouch.directive('ngClick', ['$parse', '$timeout', '$rootElement',
// Blur the focused element (the button, probably) before firing the callback.
// This doesn't work perfectly on Android Chrome, but seems to work elsewhere.
// I couldn't get anything to work reliably on Android Chrome.
if (tapElement) {
if (tapElement && angular.isFunction(tapElement.blur)) {
tapElement.blur();
}

Expand Down