diff --git a/src/angular-advanced-searchbox.js b/src/angular-advanced-searchbox.js
index <HASH>..<HASH> 100644
--- a/src/angular-advanced-searchbox.js
+++ b/src/angular-advanced-searchbox.js
@@ -277,7 +277,7 @@ angular.module('angular-advanced-searchbox', [])
                     }
 
                     function getCurrentCaretPosition(input) {
-                        if (!input)
+                        if (!input || input.type !== 'text')
                             return 0;
 
                         // Firefox & co
do not try to get the current caret position on other HTML 5 input types then "text", refs #<I>, #<I>, #<I>