From 8ff3540744dc136caf3e5e1df6c880acd867a9a0 Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 1 Jul 2021 15:47:14 +0800 Subject: [PATCH] fix auto focus select box or radio box bug --- updatefiles/javascripts/jquery_prefix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updatefiles/javascripts/jquery_prefix.js b/updatefiles/javascripts/jquery_prefix.js index 459e554..a866565 100644 --- a/updatefiles/javascripts/jquery_prefix.js +++ b/updatefiles/javascripts/jquery_prefix.js @@ -86,7 +86,7 @@ if ( jQuery.ajax ) { }; } $(function(){ - $('input[type!="checkbox"],select,textarea').not('[type="submit"]').on('focus', function() { + $('input[type!="checkbox"],textarea').not('[type="submit"],[type=radio]').on('focus', function() { $([document.documentElement, document.body]).animate({ scrollTop: $(this).offset().top -200 }, 100);