Element.addEventListener('click', null) throws Error with dev tools opened

Fixed Issue #14063806


valdrin k.
Oct 3, 2017
This issue is public.
Found in
  • Microsoft Edge
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

On Edge 15, Element.addEventListener('click', null) or Element.addEventListener('click', undefined) will throw the error Unable to get property 'handleEvent' of undefined or null reference when the F12 developer tools is opened.

If the script is run before opening the dev tools, the errors are not logged in the console.

To reproduce, execute this code on Edge 15 (jsbin here):

     document.body.addEventListener('click', undefined);
     document.body.addEventListener('click', null);


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Status to “Fixed”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 16299 and is available in our latest Insider Preview build in the Fast ring.

      Best Wishes,
      The MS Edge Team

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

    Sign in