call input blur function will not trigger its change event on Edge

Not reproducible Issue #19029613

Details

Author
Larry H.
Created
Sep 18, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

calling blur function of input will trigger its change event on Edge only. it works fine on IE11, Chrome, Firefox and Safari.
Steps to reproduce it.
1: go to JSBIN (https://jsbin.com/?html,output)
2: put below HTML into JSBIN html panel
<!DOCTYPE html>
<html>
<head>
<title>JS Bin</title>
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
</head>
<body>
</body>
</html>
3: put below JS into JSBIN JavaScript panel
$(function(){
$(‘body’).html(‘<div class="container"><input /><button>blur</button></div>’);
$(‘.container’).on("change", "input", function(evt){
console.log(‘change event triggered’);
}).on('keypress’, 'input’, function(evt){
console.log(‘keypressing …’);
});

$(document).on('keydown’, function(evt){
if($(evt.target).is(‘input’) && evt.keyCode == 13){
console.log(‘keyup pressed ******’);
$(evt.target).blur();
}
});
});

4: when you type in the input box and then press Enter, you will see input onChange event not triggered.

Above code works fine on IE11 and all other browsers.

Thanks,

Attachments

0 attachments

    Comments and activity

    • Hi Larry - Can you share what version of Windows 10 you are using?  Use the keyboard shortcut Win + S and then type “winver” and hit enter.  

      I believe this issue might be fixed in our upcoming release, Windows 10 October 2018 Update.  I am using OS build 17763.1.  Thanks! 

    • Hi Kelly,
      My windows version is Version 1803 (OS Build 17134.285). Is the update released now?

      Thanks,
      -Larry

    • Hi Larry -

      Yes, the update has been released.  Here is a post with more information about how to get the October Update.  

      https://blogs.windows.com/windowsexperience/2018/10/02/how-to-get-the-windows-10-october-2018-update/#QB2YRiEUVfwxTAGs.97

    • Microsoft Edge Team

      Changed Assigned To to “Veerabhadra r.”

      Changed Status to “Fixed”

    • Are you sure it fixed? I still have this bug.
      OS: Win 10 Pro (OS build 17134.523)
      Browser: Microsoft Edge 42.17134.1.0 (Microsoft EdgeHTML 17.17134)

      Steps to reproduce:

      1. Open the link in Edge with dev console: https://jsfiddle.net/r9owgj6h/1/
      2. Type any text and press Enter key.

      Actual result: event ‘change’ doesn’t fire (and cursor still blinks in input)
      Expected result: event ‘change’ fires

      P.S. Event ‘change’ fires when key Tab or mouse used to switch focus (blur from input)

    • Ok, I checked updates and install OS Build 17134.556.
      It didn’t help. Bug still reproduces.
      Please check it again as described in my above comment

    • Microsoft Edge Team

      Changed Assigned To to “Zachariah L.”

      Changed Status from “Fixed”

    • Hi Ray!

      Sorry for the delayed response! The current version of Edge is Microsoft Edge 44.17763.1.0 Microsoft EdgeHTML 18.17763. Please update to this version and let me know if this issue is still present.

      Thanks,

      Zach

    • Hi Ray!

      For now, I will resolve this issue as "Not Reproducible". If you are still experiencing this problem then please feel free to reopen this issue with the information I requested and I will resume my investigation.

      Thanks,

      Zach

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    You need to sign in to your Microsoft account to add a comment.

    Sign in