将 jQuery 3.4.0 升级到 3.4.1 后,在输入blur()或focus()事件上Cannot read property 'value' of undefined出现错误。
that.container.on('click', '.binary_field', function(){
$("input:focus").blur();
}
Run Code Online (Sandbox Code Playgroud)
我认为这可能是 jquery 源代码发生这种变化的原因:https://github.com/jquery/jquery/commit/24d71ac70406f522fc1b09bf7c4025251ec3aee6?diff=unified#diff-031bb62d959e7e4949d15537f3R