JQuery 3.4.1 Cannot read property 'value' of undefined

Unknown123 :

After upgrade jQuery 3.4.0 to 3.4.1, on blur() or focus() events on input I'm getting Cannot read property 'value' of undefined error.

that.container.on('click', '.binary_field', function(){
    $("input:focus").blur();
}

I think that may be cause of this change in jquery source code: https://github.com/jquery/jquery/commit/24d71ac70406f522fc1b09bf7c4025251ec3aee6?diff=unified#diff-031bb62d959e7e4949d1847c82507f33L579-R583

Ezra :

This is a known issue in jQuery 3.4.1:

https://github.com/jquery/jquery/issues/4417

Use the JavaScript .blur() instead of the jQuery method.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=7137&siteId=1