jQuery 'blur' 事件未在 Safari 单选按钮上触发

jQuery on 'blur' event not fired on Safari Radio button

简单 $(document).on('blur', 'td', function (e) { 在 Safari 14 中不触发。适用于 Chrome、Edge、Firefox。

console.log('running');
$(document).on('blur', 'td', function (e) { 
console.log('blurred td');
myClass = $(this).attr('class').replace(/\s.+$/, ''); 

if (myClass === "clock" || myClass === "sumCalc") { //if blurried RADIO buttons
                input = $(this).children('input').filter(":checked").attr('value');
                console.log(myClass);
                e.stopPropagation();
        }
    
});

https://jsfiddle.net/atis_/12pfkeuy/15/ 可能是什么问题?

似乎 Safari 在单击时不会关注选定的单选按钮。 所以我不得不添加这个:

$(document).on('click', 'input:radio', function(e) {
$(this).focus();
});