diff --git a/select2.js b/select2.js
index <HASH>..<HASH> 100755
--- a/select2.js
+++ b/select2.js
@@ -203,7 +203,7 @@
 
     function measureTextWidth(e) {        
         if (!sizer){
-        	var style = e.currentStyle || window.getComputedStyle(e, null);
+        	var style = e[0].currentStyle || window.getComputedStyle(e[0], null);
         	sizer = $("<div></div>").css({
 	            position: "absolute",
 	            left: "-1000px",
style detection for search field sizer corrected