Explorar el Código

ie8刷新输入框失焦

zhangxc hace 5 años
padre
commit
2b2da2bbcf
Se han modificado 1 ficheros con 1 adiciones y 4 borrados
  1. 1 4
      src/js/staticSearch.js

+ 1 - 4
src/js/staticSearch.js

@@ -169,10 +169,7 @@ if(is8Ie){
         $(".ipt input").attr("value","")
         $(".ipt input").val("")
         $(".placeholder").css("display","inline-block")
-        var myInput = document.getElementById('searchInp');
-        if(myInput == document.activeElement){
-            $(".placeholder").css("display","none") 
-        }
+        $(".ipt input").blur()
     },100)