fix auto focus select box or radio box bug

This commit is contained in:
chiu 2021-07-01 15:47:14 +08:00
parent 20ef6e26d3
commit 8ff3540744
1 changed files with 1 additions and 1 deletions

View File

@ -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);