Problem with focus

Confirmed Issue #8016621 • Assigned to Bogdan B.


Maria S.
Jun 28, 2016
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Standard affected
Focus Problem

Found in build #
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

  1. Open test.html demo ( )
  2. Start typing in the first input
  3. Click in the second input (“change” event listener is fired and focus() is called for the third input)
  4. The problem is that document.activeElement refers to the third input (that is correct). However, cursor is in the second one.


1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Status to “Confirmed”

    Changed Assigned To to “Brad E.”

    Changed Assigned To to “Bogdan B.”

  • I’ve reproduced this bug using test.html in EdgeHTML 16.16299.

    I’ve also encountered a similar issue with focus in Edge:
    I have two inputs. The first input has an event listener for the focus event that switches focus to the second input.

    After clicking on the first input, the document.activeElement always changes to the second input. But sometimes the cursor remains in the first input.

    This occurs with Edge on a Surface Pro using touch, but not with Edge on a desktop computer using the mouse. When it occurs, the virtual keyboard does not appear.

    By using a long setTimeout to delay the focus event, it is possible to ensure the focus moves to the second input. But the virtual keyboard sometimes disappears when doing this.

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

Sign in